How do you create a PDF with sidebar text?

I want to create a PDF from Python.

I noticed that some pdfs have text in the sidebar that allows you to see the context in which search terms appear.

eg. dictionary search

Sidebar view:

Page 10 Assigning a value to an existing dictionary key simply replaces the old value with the new one.

How it's done?

Is there a way to convert existing PDFs to render this sidebar text?

+2


source to share


3 answers


If you create Reportlab pdf files then the library has bookmarks to bookmark as you want. Checkout bookmarkPage

on page 54 of the documentation.



+1


source


I believe you mean bookmarks. first hit Google indicates that you can put them manually using Acrobat Pro.



DocBook XSL when used with Apache FOP

0


source


PyQt gui toolkit supports PDF creation. See for example: Printing Rich Text with Qt

0


source







All Articles