(self, text, positionRect=[-100, -100, 0, 0])
| 554 | self.pageAnnotations = [] |
| 555 | |
| 556 | def newTextnote(self, text, positionRect=[-100, -100, 0, 0]): |
| 557 | # Create a new annotation of type text |
| 558 | theNote = {'Type': Name('Annot'), |
| 559 | 'Subtype': Name('Text'), |
| 560 | 'Contents': text, |
| 561 | 'Rect': positionRect, |
| 562 | } |
| 563 | annotObject = self.reserveObject('annotation') |
| 564 | self.writeObject(annotObject, theNote) |
| 565 | self.pageAnnotations.append(annotObject) |
| 566 | |
| 567 | def finalize(self): |
| 568 | "Write out the various deferred objects and the pdf end matter." |
no test coverage detected