![]() Create a document top level ToC (Table of Contents).Ok, here is a quick'n'dirty way to do three jobs at once: The resulting PDF, bookmarked.pdf now contains the bookmarks. Now run this command: gs -o bookmarked.pdf \ Name this file for example: addmybookmarks.txt 2. Title (Bookmark for page 14) /OUT pdfmark Title (Dunno which page this is.) /OUT pdfmark The content on the text file should look something like this: /Title (This is page 1) /OUT pdfmark Run Ghostscript command that processes your current PDF file alongside the text file.Create a text file (a PostScript file, really), with a limited set of pdfmark commands, one per line and bookmark you want to add.This one uses Ghostscript to process PDF-to-PDF and the pdfmark PostScript operator to insert the bookmarks.įor some introduction to the pdfmark topic, see also: ![]() This is the Bookmark format I noticed after inspecting in Step 4 above. Run PDFTK again: pdftk my.pdf update_info bookmarks.txt output bookmarked.pdf ![]() ![]() txt file by adding all the entries you want. Pdftk my.pdf dump_data output bookmarks otherdata.txt Run one of these commands: pdftk my.pdf dump_data output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |