C:\>pdf2img.exe
PDF2Image Version 2.0
Convert PDF files to Image files, include TIFF, JPEG, GIF, PNG, BMP, EMF, PCX,
TGA. etc.
Web: http://www.e-pdfconverter.com
Email: support@e-pdfconverter.com
Build date: Feb 21 2010
Support raster image formats:
1. BMP: Microsoft Windows bitmap
2. GIF: CompuServe Graphics Interchange Format
3. JPG: Joint Photographic Experts Group JFIF format
4. PNG: Portable Network Graphics
5. TGA: Truevision Targa image
6. PCX: ZSoft IBM PC Paintbrush file
7. PNM: Portable anymap
8. RAS: SUN Raster Format
9. PBM: Portable bitmap format (black and white)
10. TIF: Tagged Image File Format
Usage: pdf2img [options] <PDF-file> <img-file>
-f <int> : first page to print
-l <int> : last page to print
-r <int> : resolution for both X and Y, in DPI (default is 150)
-xres <int> : xresolution, in DPI (default is 150)
-yres <int> : yresolution, in DPI (default is 150)
-w <int> : set image width, unit is pixel
-h <int> : set image height, unit is pixel
-mono : generate a monochrome image file
-gray : generate a grayscale image file
-dither <int> : enable or disable dithering when reduce the number of
bits per pixel to nbit (1, 4 or 8)
-compress <int> : set compression to TIFF format:
-compress 1 : NONE compression
-compress 2 : CCITT modified Huffman RLE
-compress 3 : CCITT Group 3 fax encoding (1d)
-compress 4 : CCITT Group 4 fax encoding
-compress 5 : LZW compression
-compress 6 : OJPEG compression
-compress 7 : JPEG DCT compression
-compress 32773 : PACKBITS compression
-compress 32809 : THUNDERSCAN compression
-compress 88880 : 204x98 G4 ClassF TIFF
-compress 88881 : 204x196 G4 ClassF TIFF
-compress 88882 : 204x98 G3 ClassF TIFF
-compress 88883 : 204x196 G3 ClassF TIFF
-compress 88884 : CCITT Group 3 fax encoding (2d)
-quality <int> : set quality to JPEG format, from 0 to 100
-multipage : create multipage TIFF file
-aa <string> : enable font anti-aliasing: yes/no, default is 'yes'
-aavec <string> : enable vector anti-aliasing: yes/no, default is 'yes'
-aaimg <string> : enable image anti-aliasing: yes/no, default is 'yes'
-opw <string> : owner password (for encrypted files)
-upw <string> : user password (for encrypted files)
-trimimage : trim image file
-$ <string> : input your license key
-h : print usage information
-? : print usage information
Example:
pdf2img.exe C:\in.pdf C:\out.tif
pdf2img.exe C:\in.pdf C:\out.gif
pdf2img.exe C:\in.pdf C:\out.jpg
pdf2img.exe C:\in.pdf C:\out.bmp
pdf2img.exe C:\in.pdf C:\out.png
pdf2img.exe -f 1 -l 10 -r 300 -mono C:\in.pdf C:\out.tif
pdf2img.exe -compress 88881 -mono C:\in.pdf C:\out.tif
pdf2img.exe -compress 88881 -mono -multipage C:\in.pdf C:\out.tif
pdf2img.exe -trimimage C:\in.pdf C:\out.png
pdf2img.exe -opw 123 -upw 456 -aa no C:\in.pdf C:\out.png
for %F in (D:\temp\*.pdf) do pdf2img.exe "%F" "%~dpnF.png"
for /r D:\temp %F in (*.pdf) do pdf2img.exe "%F" "%~dpnF.png"
for %F in (D:\temp\*.pdf) do pdf2img.exe "%F" "%~F.png"
pdf2img.exe -dither 1 -mono C:\in.pdf C:\out.tif
pdf2img.exe -dither 0 -mono C:\in.pdf C:\out.tif |