ReportLab: PDF Processing with Python by Michael Driscoll

ReportLab: PDF Processing with Python by Michael Driscoll

Author:Michael Driscoll [Driscoll, Michael]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2018-06-10T23:00:00+00:00


setAuthor()

setTitle()

setSubject()

File annotations are invisible. You can only view them by opening up the Document Properties dialog, which can be found in the File –> Properties menu item in Adobe Reader. This is a great way to provide simple standard information about the document to archiving software or other software that might need to consume your PDFs.

Let’s look at a simple demo:

# annotations.py from reportlab.pdfgen import canvas def annotations(): my_canvas = canvas.Canvas('annotations.pdf') my_canvas.drawString(10, 700, 'Annotations demo') my_canvas.setAuthor('Mike Driscoll') my_canvas.setTitle('ReportLab: PDF Processing with Python') my_canvas.setSubject('Use Python to create PDFs') my_canvas.save() if __name__ == '__main__': annotations()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.