For printing or storing reason, sometime we need to change PDF page size. In this article, I will show you one method of changing PDF page size by command line satisfying printing need. The software I use is named as VeryDOC Raster to Vector Converter Command Line, which is a professional tool of changing image file formats from raster image to vector by command line. This software is Window application, it can work under both 32-bit and 63-bit. But if you need to make it work under Mac or Linux, for not it can not make it. Please check more related information of this software on homepage, in the following part, let us check how to use this software.
Step 1. Free download Raster to Vector Converter Command Line
- This is Window application, when downloading finishes, it is a zip file. Please extract it to some folder then you can find related elements, help document and other files.
- Now there is no single computer version, if you need to make it work under single computer, please choose the server version, which could also work under server normally.
Step 2. Change PDF page size.
- When you use this software, please refer to the usage and the example. Here is the usage for your reference:
RasterToVector [options] <in-file> [<out-file>] - When you need to change PDF page size, please refer to the following command line templates.
Raster2Vector.exe -width 595pt -height 842pt C:\in.pdf C:\out.pdf
By this command line, we can change PDF size from original size to specified height and width.
Raster2Vector.exe -pagesize a4 C:\in.pdf C:\out.pdf
By this command line, we can change PDF size to A4 format.
Raster2Vector.exe -width 8.5 -height 11 C:\in.pdf C:\out.pdf
By this command line, we can specify width and height by another unit.
This software supports various standard PDF file formats like A4, A3, A5, B5, Letter, Legal, Tabloid, Statement
, Executive, Folio, Quarto, 10x14. Format names are case insensitive.
Now, please check some parameters you may use.
-pagesize <string> : set page size (default is letter)
-width <string> : width of output file, unit: in/cm/pt
-height <string> : height of output file, unit: in/cm/pt
-res <string> : resolution (in dpi)
-rotate <string> : rotate counterclockwise by angle
-margin <string> : set margin to output file, unit: in/cm/pt
-lmargin <string> : set left margin to output file, unit: in/cm/pt
-rmargin <string> : set right margin to output file, unit: in/cm/pt
-tmargin <string> : set top margin to output file, unit: in/cm/pt
-bmargin <string> : set bottom margin to output file, unit: in/cm/pt
If you need to know more about this software, please visit homepage. During the using, if you have any question, please contact us as soon as possible.