3

I have a PDF of the size w=105mm and h=297mm (ie A4 split vertically) Now I wanted to print this PDF to generate another PDF which will have two pages from original PDF placed vertically side-by-side in an A4 sheet which also should be in portrait mode.

I have tried various settings via the Linux Mint system printer but it always either rotates the pages of input file or rotates the page to landscape mode in the output file. I've also tried Google Chrome's print PDF feature but that too doesn't support multiple portrait pages in a portrait output page.

Is there any command-line tool in Linux/Ubuntu that can achieve what I'm trying?

Here is a sample file for trail (Just in case): PDF File

🙏

1

1 Answer 1

3

The pdfjam utility is the de facto standard for this kind of manipulation. A pdfnup wrapper may be available but it was recently removed from pdfjam. It is available in Ubuntu in the package texlive-extra-utils.

If I understand your requirements correctly, it's very simple:

pdfjam --nup 2x1 HalfA4V.pdf -o a4.pdf
4
  • 1
    How do I install pdfjam on Linux Mint? Followed the steps on zoomadmin.com/HowToInstall/UbuntuPackage/pdfjam but apt-get says package not found. :( Prerequisites are too many and large... Commented Feb 26, 2020 at 14:45
  • 1
    @YourPalNurav The Ubuntu package name is not pdfjam, it's texlive-extra-utils. See community.linuxmint.com/tutorial/view/1525 for generic instructions on installing Ubuntu packages on Mint. Commented Feb 26, 2020 at 14:55
  • will texlive-extra-utils install working pdfjam or will I have to install the complete texlive or latex package? Commented Feb 26, 2020 at 15:15
  • 1
    @YourPalNurav You need to install this package. The dependencies (mostly on other texlive packages) will be installed automatically. Commented Feb 26, 2020 at 15:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .