-   Linux - General (
-   -   merge pdf files with each file as a index entry in the big pdf (

ununun 03-08-2013 12:28 PM

merge pdf files with each file as a index entry in the big pdf
I have a book but instead of one single pdf, i have multiple pdfs for each chapter. so what i want to do is create single pdf with an index (table of content).

so far i have renamed each pdf with following syntax

<same width chapter number>-<chapter name>.pdf
i have been able to merge them into single pdf with correct order with pdfunite. but i cant find how to create index automatically.

thank you

ununun 03-08-2013 06:56 PM

found it. .

however jpdfbookmarks command syntax used in pdfdir-join seems outdated, need to be changed to work correctly . in line 129 change

jpdfbookmarks --apply "$outbase".nomarks.pdf "$markfile" "$outbase".pdf

jpdfbookmarks "$outbase".nomarks.pdf --apply "$markfile" --out "$outbase".pdf
thank you bronson

kobayashison 05-12-2014 10:27 AM

Another more powerful tool
I had the same need and I found another tool that can merge pdf adding the index (TOC): jPDF Tweak.

After added all the files, to add the TOC you have to go in "Bookmarks" tab and add item per item or simply "Load from document" that add an index entry per file.

The good part of jPDF Tweak is that you can do a lot of other modification (watermarking, page resize, rotations...) on the output pdf.

The drawback is that is not a command line tool.

kobayashison 05-12-2014 10:32 AM

On Stackoverflow I found also another command line tool: sejda

All times are GMT -5. The time now is 06:14 AM.