The file doublemerged.pdf will now have 2*4 = 8 bookmarks. Let's use the one generated by the command of my first edit (effectively concatenating 2 copies of the same file): gswin32c ^ Oh, and by the way: Ghostscript does preserve the bookmarks when you use it to merge two PDF files into one - pdftk.exe does not. The /Title (some string you want) thingie determines what text is in the ToC.Īnd, you could even add these parameters to the Ghostscript commandline directly: gswin32c.exe ^.(You could say to do this, if you want an arbitrary example.) The part makes sure your page viewport and zoom level does not change from the current one when you follow the link.This would create a ToC for the first 4 files = first 4 pages (since you guarantee your ingredient files are 1 page each for your merged output PDF). I had wanted to give you an example for file-with-pdfmarks-to-generate-a-ToC.ps, but somehow forgot it. f input1.pdf input2.pdf input3.pdf įor some introduction to the pdfmark topic, see also Thomas Merz's PDFmark Primer. For example: gswin32c.exe ^įile-with-pdfmarks-to-generate-a-ToC.ps ^ ![]() With Ghostscript you'll be able to pass pdfmark statements which can add a Table of Content as well as bookmarks for each additional source file going into the resulting PDF. The big advantage of this route is that a solution is easily scriptable, and it does not require a real programming effort: gswin32c.exe ^ You can also merge multiple PDFs with Ghostscript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |