Many times we have faced the problem of having to merge two PDF documents. There are several possible solutions, but undoubtedly the simplest one is presented here.
We install the necessary software:
emerge -av pdfjam
PDFjam consists of 3 utilities:
- pdfnup: Groups multiple pages of a document together at a reduced size on a single physical page.
- pdfjoin: Merges PDFs
- pdf90: Rotates the PDF by 90 degrees
Merge files while respecting the original page size:
pdfjoin file1.pdf file2.pdf –fitpaper true –outfile final.pdf
Merge files by scaling the pages to A4:
pdfjoin file1.pdf file2.pdf –fitpaper false –paper a4paper –outfile final.pdf