How to create a PDF index page?

I have a python script that exports 772 pdf and merges them into a multi-page pdf binder. When exporting each PDF, it also adds the name of the current pdf as an entry in a text file. After creating the entire binder, the text file has an entry for each PDF page in the same order as the PDF binding. I need to use this text file to create an index page at the beginning of a PDF file, preferably a link to each page of the document.

If I need to complete this task manually, I (and I will be open to suggestions), but I hope to find a way to automate it.

Also, this does not need to be done in Python, but it would be nice to fit in with my current script.

Thanks for the feedback,

Tanner

+3
source share
2 answers

Pursuing documents for arcpy.mapping, I see that you are not joking about the "restriction".

Instead of adding new pages, have you considered adding bookmarks to PDF?

And the only Python software I could dig that could add bookmarks was pdfrecylce . It is in version 0.05, so I'm going to step on a limb and guess that it may not be too stable.

If you are ready to use Java or C #, there are iText and iTextSharp (but I'm biased). There are many other PDF libraries floating around that can manipulate existing PDF files ... select a language and start a Google search.

0
source

PDFsam PDF PDF .

PDFsam Basic, PDF , , . PDF , , "." PDF . , PDFsam Enhanced . .

0

All Articles