Friday, November 20, 2015

ps - Multiple pages per sheet (PDF)



I use the following ghostscript commands



pdf2ps input.pdf - | psnup -pA4 -4 >> output.ps

ps2pdf output.ps output.pdf
rm output.ps


to merge multiple pages (in this case 4) from input file to one sheet in outupt file.



How can I modify pipelining so that I won't have to use 2 commands, but just a single one liner? Is there any other commandline tool that would do the same and can work directly on pdf files?


Answer



There is PDFjam that brings pdfnup and allows you to do basically the same things as psnup.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...