Merge pdf sejda
![merge pdf sejda merge pdf sejda](https://www.sejda.com/images/pages/merge-pdf/bookmarks.png)
The commands I tested all broke some links (however I may have missed a command that works for you). I retested a few of the more established ones. There are still a few tools to allow merging pdf files whilst retaining hyperlinks. The java library is under the GNU Affero Public License 3.0 and an API is even available.
![merge pdf sejda merge pdf sejda](https://miro.medium.com/max/1400/1*qo5d-UrdT5lt9-ik8C9mZQ.png)
does not mention any version, but was tested on 4.pdfsam: PDF Split And Merge Basic Edition 4.0.1.pdftk: port to java 3.0.2 a Handy Tool for Manipulating PDF Documents.I don't think that this is even feasible without re-writting the LaTeX source code.) Versions (Note that the links to files are not converted to internal anchor if the document that was referenced is being merged. | pdftk | pdftk a.pdf b.pdf cat output tot.pdf | ✓ | ✓ | ✓ | ✓ | | pdfunite | pdfunite a.pdf b.pdf tot.pdf | ✓ | ✗ | ✗ | ✓ | | gs | gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=tot.pdf a.pdf b.pdf | ✗ | ✗ | ✗ | ✗ | | pdfjam | pdfjam a.pdf b.pdf -o tot.pdf | ✗ | ✗ | ✗ | ✗ | | convert | convert a.pdf b.pdf tot.pdf | ✗ | ✗ | ✗ | ✗ | I combined them into a tot.pdf file using the following tools, and tested whenever the url, the reference and the internal links were preserved in both documents or not. Use pdfannotextractor on a.pdf and on b.pdf: CLASSPATH='PDFBox-0.7.3/lib/PDFBox-0.7.3.jar:%CLASSPATH%' pdfannotextractor a.pdfĬLASSPATH='PDFBox-0.7.3/lib/PDFBox-0.7.3.jar:%CLASSPATH%' pdfannotextractor b.pdfĬompile the following document with pdflatex: \documentclass,
Merge pdf sejda install#
Install the pax package from CTAN (or via TeXLive or MikTeX).ĭownload and unzip the PDFBox-0.7.3 Java library (an old version of the Apache PDFBox, a Java PDF library).
Merge pdf sejda manual#
(In case of problems, you can use the -debug option of the pdfannotextractor script.) Manual installation If you want to combine two PDF files ( a.pdf and b.pdf) keeping the PDF annotations (internal and external links are kind of PDF annotations), use the manual or automatic method.
![merge pdf sejda merge pdf sejda](https://64.media.tumblr.com/219a8800630395f8dca5363023ba44c4/tumblr_inline_or812fDIo81r9cxcv_500.png)
My method uses the pax package and its pdfannotextractor Perl script (by Heiko Oberdiek).