(self, textstate, seq)
| 129 | return |
| 130 | |
| 131 | def render_string(self, textstate, seq): |
| 132 | font = textstate.font |
| 133 | text = '' |
| 134 | for obj in seq: |
| 135 | if not isinstance(obj, str): continue |
| 136 | chars = font.decode(obj) |
| 137 | for cid in chars: |
| 138 | try: |
| 139 | char = font.to_unichr(cid) |
| 140 | text += char |
| 141 | except PDFUnicodeNotDefined: |
| 142 | pass |
| 143 | self.outfp.write(enc(text, self.codec)) |
| 144 | return |
| 145 | |
| 146 | def begin_page(self, page, ctm): |
| 147 | self.outfp.write('<page id="%s" bbox="%s" rotate="%d">' % |