Command Line Summary

Required Arguments

Argument NameDescription
inputFileInput PDF file name
outputFormatOutput graphic format–BMP/EPS/GIF/JPG/PDF/PNG/RAW/TIF

Optional Arguments

Use the following optional arguments in any order, preceding the required and 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 (outputFormat).

Argument NameDescription
asprintedIf specified, reverse the Annotation handling to suppress Image-only annotations and allow Print-only annotations
blackisoneIf specified, reverse the PhotometricInterpretation setting to be black=1/white=0:br_TIFF only_
blendingspaceSpecify a blending color space by naming a profile description or providing a name and path of the profile (icc) file:brDefault = CMYK=0
bpcProvide the number of bits used to represent each output color channel:brDefault = 8
colormodelDefine the color model, cmyk/gray/lab/rgb/rgba:brDefault=rgb
colorprofileDefine the output ICC color profile:brDefault determined by color space=0
compressionDefine the compression method, no/jpg/lzw/g3/g4:brDefault=lzw
digitsIf provided, use to specify the number of digits to use in the sequential output filename counter
firstonlyConvert only the first page of the input file.:brDefault=all pages
fontlistIf specified, provide a quoted semicolon-delimited list of alternate directories for font resources.
helpIf specified, provide a help list of available commands.
gnoredefaultfontsIf specified, ignore default font resource locations when searching for fonts at start up (default directories and current directory).
ignorewarnIf specified, suppress warnings for non-renderable content.
intentDefine the goal or priority for rendering intent for colors: perceptual/relative/saturation/absolute/profile.:brDefault= profile if color profile is specified, otherwise perceptual
jpegqualitySet the JPEG compression quality from 1 to 100.:brHigher values produce a better image but also a larger output file size.:br_JPEG only, Default=75_
maxbandmemDefine the maximum memory to use per band of multiband conversion output in bytes.:br_JPEG or TIFF only, Default=300000000_
multipageIf specified, produce one multipage TIFF output file of the requested name rather than the default of single-page sequentially named output files.:br_TIFF only_
noannotIf specified, suppress viewable annotations.
nocmmIf specified, suppress Color Management Module.
noenhancethinlinesIf specified, do not enhance thin lines when rendering.
OPPIf specified, enable Overprint Preview (OPP) in output.
outputProvide a prefix for output filename(s) to be created.:br_Default=input PDF file name plus sequence number_
outputintentIf specified, use the output intent dictionary value found in the source PDF document to define the output color profile to use when rasterizing a document.
pagesIf specified, provide a page or range of pages to process, such as 14-last or 2-9
password.If specified, enter a password string required to open the document for conversion.
pdf-rasterizeRasterize each page and export the content to a single PDF output file.
pdf-rasterize-splitRasterize each page and export the content to a series of PDF output files, one for each page in the source document.
pdfregionDefine the region of PDF page to rasterize.:brOptions include art, bleed, bounding, crop, media, or trim.:br_Default=crop_
pdf-splitSplit a PDF document into a series of separate PDF documents, one PDF document for each page in the source file.
pixelcountIf specified, define an absolute picture size expressed as horizontal by vertical number of pixels. This can be used to specify a fixed number of pixels for the width and/or height of an output image, and thus scale the image up or down as needed to a specific output size and dimension.
profileCMYKProvide the name and location of the CMYK color profile or description of the color profile to use for CMYK values specified in uncalibrated (device) color values in the input PDF file.:br_Default=Adobe Reader 9 CMYK_
profileGrayIf specified, provide the name and location of the grayscale color profile or description of the color profile to use for grayscale values specified in uncalibrated (device) color values in the input PDF file.:br_Default=Gray Gamma 2.2_
profileRGBIf specified, provide the name and location of the RGB color profile or description of the color profile to use for grayscale values specified in uncalibrated (device) color values in the input PDF file.:brDefault=sRGB
relaxParseSyntaxIf specified, relaxes parsing restrictions to fix minor syntax issues in PDF source documents.
removewhitespaceIf specified, direct PDF2IMG to remove the white space margins around the content on a page in the PDF document.
resamplerApply bicubic resampling: auto, bicubic, or none.:brDefault=auto
resolutionDefine output resolution, from 12 to 2400 in Dots per Inch:brDefault=300
reverseIf specified, use to create a negative image.:brGrayscale output formats only
smoothingSpecify to apply Image antialiasing. Options include none, text, line, image, or all.