PDF – How to Change Height and Width of Each Page

pdf

I was wondering how to change width and height of each page of a pdf?

In my scanned pdf, each page has paper size too big, 31.98 × 49.20 inch. I would like to shrink the width and height to smaller ones which are normally seen in pdf files.

Are there some applications or programming tools to accomplish this?

Best Answer

You could try ghostscript (all one line):

gs -sOutputFile=output.pdf -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -f input.pdf

Change a4 to letter for North America.