Tuesday, February 28, 2012

Converting to A4 PDF

I had to resize some PDF file from an odd size to A4. I finally found out the right script:
convert -density 300 input.pdf input.ps
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=output.pdf input.ps

No comments: