Let us say I want slides.pdf to contain 4 slides per page.
I can open a slides.pdf document under evince (the default Ubuntu document viewer)
evince slides.pdf-->Print-->Page Setup--> Pages per Side --> 4 (or some other number)
Then, I can indicate I want to print to a file, and print. The result is an output.pdf file with the desired number of slides per sheet.
I want to achieve this same functionality through the command line (as I need to incorporate this into a script). All I have found some far are solutions relying on external tools. For example, I tried installing pdfjam (which required me to install 88.1 MB worth of packages from texlive-latex-base in order to achieve a functionality that I already have!), The result was only failure with pdfjam ERROR: LaTeX package pdfpages.sty is not installed.
I would rather avoid external packages.
How do I achieve this through the command line?
pdfnupworks fine. A note for people who want to put the same one page PDF four times on one page: You need to list the input pdf file four times:pdfnup --no-landscape --a4paper --nup 2x2 input.pdf input.pdf input.pdf input.pdf– guettli Dec 20 '14 at 17:16pdfnup --nup 2x2 --frame true --noautoscale false --delta "0.2cm 0.3cm" --scale 0.90 your.pdfwill print 4 slides on one page of a pdf file named "your-nup.pdf" using content of "your.pdf" as input pages.--frame trueprints a frame around each slides,--delta...specifies a margin between frames, and--scale ...ensures that a sheet margin is introduced so your printer handles the job well without cutting off content. All options at http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/#using. – Cbhihe Feb 14 '17 at 17:20