I have two one-page PDF files (https://brightlight.today/fileserver/downloads/6fee1900940e73acde6311b80161c53b and https://brightlight.today/fileserver/downloads/81c9cb755c53720a12f00f31ce5e3ec8):
I would like to combine them to one PDF document 2-up (combine both pages to one output page) but make them take up the whole pdf document. When I run pdfjam lyrics-text.pdf mightyfortress-cropped.pdf --landscape --nup 2x1 --outfile lyrics-two-up.pdf;
, I get
I can see that the sheet music could be a good deal larger and still fit on the page. When I run pdfjam lyrics-text.pdf mightyfortress-cropped.pdf --scale 1.1 --landscape --nup 2x1 --outfile lyrics-two-up.pdf;
, I get
which is not good. Further efforts at scaling up or down one page or the other results in further frustration. I even tried using the pdfpages
package latex package in a latex document, and got the same results (\includepdfmerge[landscape=true,nup={1x2},scale=1.1]{lyrics-text.pdf,mightyfortress-cropped.pdf}
).
I also tried pdftk lyrics-text.pdf mightyfortress-cropped.pdf cat output lyrics-two-up.pdf;
then open in evince and print two pages to one page:
Seems like a pleasing output, but I would like it to be much bigger to take up more of the page. Changing the "scale" option in the printing options doesn't seem to help anything.
I've hit variations of this problem over and over in the past decade or so. In general, I would like to be able to put any page from any source PDF anywhere and any size on any page of the output PDF. Is that too much to ask? 😉
Best Answer
The approach below inserts the two images on a blank page and scales (or resizes) each individually. The image placements are done at page shipout and moved into position.