2023-02-24

Merge two pdfs in the same page in GNU/Linux (Debian/Ubuntu)

If you have two pdfs and you want to print them in a single page, you can start by merging both in a single page in a 3rd pdf.

Maybe you need to install using the following:

sudo apt install texlive-extra-utils

Then you can merge using one of the following commands:

  • Vertical
    pdfjam *.pdf --nup 1x2 --outfile merged.pdf
  • Horizontal
    pdfjam *.pdf --nup 2x1 --outfile merged.pdf
  • Landscape
    pdfjam *.pdf --nup 2x1 --landscape --outfile merged.pdf

Happy hacking!!!