Command Line Summary

Required Arguments

Only two command line arguments are required, <inputFile> and <outputForm>.

All of the rest are optional. The optional arguments can appear in any order in the command line argument, but they must come before <inputFile> and <outputForm>.

For details see Arguments and Options.

Argument name Description Default
inputFile Input PDF file name
outputForm Output graphic format–BMP/EPS/GIF/JPG/PDF/PNG/RAW/TIF

Optional Arguments

Use the following optional arguments in any order, preceding the required <inputFile> and <outputForm> arguments. For example:
pdf2img -firstonly -colormodel=gray -bpc=1 -jpegquality=40 -resolution=72 input.pdf jpg
The two required arguments appear at the end, “input.pdf” as the file name (inputFile) and “jpg” as the output format (outputForm).

Argument name Description Default
asprinted Reverse the Annotation handling to suppress Image-only annotations and allow Print-only annotations None
blackisone Reverse the PhotometricInterpretation setting to be black=1/white=0 None
TIFF only
blendingspace Specify a blending color space by naming a profile description or providing a name and path of the profile (.icc) file None
bpc Number of bits used to represent each output color channel 8
colormodel cmyk/gray/lab/rgb/rgba rgb
colorprofile Output ICC color profile Determined by colorspace
compression no/jpg/lzw/g3/g4 lzw
TIFF only
digits Specify the number of digits to use in the sequential output filename counter None
firstonly Convert only the first page of the input file All pages
fontlist A quoted semicolon-delimited list of alternate directories for font resources None
GetExtendedErrorString Obtain an an internal Adobe PDF Library error string when the PDF2IMG COM method returns a non-zero value None
GetLastError Obtain an error string when the PDF2IMG COM method returns a non-zero value None
help Print the help list of available commands None
PDF2IMG only
ignoredefaultfonts Ignore default font resource locations when searching for fonts at start up (default directories and current directory) None
ignorewarn Suppress warnings for non-renderable content None
intent Goal or priority for rendering colors: perceptual/relative/saturation/absolute/profile profile if color profile is specified
otherwise perceptual
jpegquality JPEG compression quality from 1 to 100 75
Higher values produce a better image but also a larger output file size
JPG only
maxbandmem Maximum memory to use per band of multiband conversion output in bytes 300000000
JPG or TIFF only
multipage Produce one multipage TIFF output file of the requested name rather than the default of single-page sequentially-named output files None
TIFF only
noannot Suppress viewable annotations None
nocmm Suppress Color Management Module None
noenhancethinlines Do not enhance thin lines when rendering None
OPP Enable Overprint Preview (OPP) in output None
output Prefix for output filename(s) to be created Input PDF filename plus sequence number
outputintent Description of the output intent dictionary value found in the source PDF document to define the output color profile to use when rasterizing a document None
pages A page or range of pages to process; such as 14-last or 2-9 None
password Password string required to open the document for conversion None
pdfregion Region of PDF page to rasterize; note the slight differences in option names between PDF2IMG and PDF2IMG COM
PDF2IMG COM options use a "box" suffix
PDF2IMG options: art/bleed/bounding/crop/media/trim crop
PDF2IMG COM options: artbox/bleedbox/boundingbox/cropbox/mediabox/trimbox cropbox
PDF2IMG .NET options: artbox/bleedbox/boundingbox/cropbox/mediabox/trimbox none
You can also create a custom region. Enter a series of coordinates to define the PDF units to define the left/top/right/bottom. Separate values by commas as in pdfregion
In this example the region to rasterize would be defined as:
* 0 units from the left margin
* 300 units down from the top
* 300 units over from the right margin
* 0 units up from the bottom
A PDF unit here is a form of measurement used with PDF documents to define the placement of text of graphic on a page. There are 72 PDF units per inch.
pixelcount Absolute picture size expressed as horizontal x vertical number of pixels None
profileCMYK Name and location of input CMYK color profile or description of the color profile to use None
profileGray Name and location of input grayscale color profile or description of the color profile to use None
profileRGB Name and location of input RGB color profile or description of the color profile to use None
resampler Apply bicubic resampling: auto bicubic or none auto
resolution Output resolution from 12 to 2400 in Dots per Inch 300
reverse Create a negative image None
Grayscale output formats only
smoothing Image antialiasing; note the slight differences in option prefixes and names between PDF2IMG and PDF2IMG COM
PDF2IMG options: none/text/line/image/all None