VeryPDF PDF to Image Converter Command Line is a cross-platform program that can convert PDF pages to images. It has Windows, Mac, and Linux versions. This is a brief guide of the program. The usages of the three versions are the same, and they all can convert PDF to images of TIFF, JPEG, GIF, PNG, BMP, PCX, TGA, PBM, PGM, and PPM.
1. For Windows | 2. For Mac OS X | ||
---|---|---|---|
3. For Linux | 4. Options |
Download the package of VeryPDF PDF to Image Converter Command Line for free trial. Unpack the package to a folder in the disk, and you will see the executable file pdf2img.exe in the folder. Open a Command Prompt window in your windows, and then you may run the program.
The usage rule of the program is
pdf2img.exe [options] <input PDF> <output file>
Specify options and arguments in the field of options. Give the name for output files in field of output file. When giving the name of output file, please include the extension name because the program determines the output format by the extension name.
The following command line is an example for converting a PDF file to JPG image.
pdf2img.exe input.pdf output.jpg
You can download the package of Mac version VeryPDF PDF to Image Converter Command Line and then unpack the package to your Mac OS X system. You will find the program file pdf2img in the folder. The Mac version usage is the same as the Windows version. You need to open a terminal window in the Mac OS X to run the program.
The following is an example for converting a PDF file to GIF image and setting the image resolution to 200 DPI.
pdf2img -r 200 in.pdf out.gif
In the commands, option -r is for setting the resolution to 200 DPI, and out.pdf with extension name .gif is for setting the file name and target format.
Please download the package of Linux version VeryPDF PDF to Image Converter Command Line and then unpack the package to the disk. The executable file is pdf2img. The usages and options for Linux are as the same as those for Windows and Mac OS X.
You may convert a PDF to PNG and set the image size by the following commands in Linux.
pdf2img -height 800 in.pdf out.png
With commands, you may convert the PDF to PNG image, and set the height to 800 pixels.
All the three versions of VeryPDF PDF to Image Converter Command Line have the same options and arguments. The following are some of them, and you can learn more in the readme file.
-opw <string>: input owner password for encrypted PDF. -upw <string>: input user password for encrypted PDF. -r <int>: set image resolution, in DPI. -xres <int>: set x resolution, in DPI. -yres <int>: set y resolution, in DPI. -w <int>: set image width, in the unit of pixel. -h <int>: set image height, in the unit of pixel. -mono: generate monochrome images. -gray: generate grayscale images.
Above paragraphs are the guides and you can visit the homepage to see the features of VeryPDF PDF to Image Converter Command Line.