![Combine pdf sejda](https://cdn2.cdnme.se/5447227/9-3/8_64e61dfb9606ee7f6adf5896.png)
![combine pdf sejda combine pdf sejda](https://www.hdfstutorial.com/wp-content/uploads/2020/08/sejda.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.
![combine pdf sejda combine pdf sejda](http://www.best-pdf-tools.com/images/combine-pdf.jpg)
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, 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). (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. My method uses the pax package and its pdfannotextractor Perl script (by Heiko Oberdiek).
![Combine pdf sejda](https://cdn2.cdnme.se/5447227/9-3/8_64e61dfb9606ee7f6adf5896.png)