×
Menu
Index

Command Line Parameters

 
 
AcroPlot Repro supports many of the command line switches when calling the AcroPlotRepro.exe directly that Ghostscript does but not all of them.
 
*** We also support some of our own command line switches to provide increased functionality beyond Ghostscript and those marked by the three asterisks ***.
 
Please note that if you do not specify all of the optional command line values we will use the values that were last used in the AcroPlot Repro user interface.  This can come in handy if you want to change say the Remove White Space or the Dither Type in our interface without having to rewrite your batch file or programming calls.  Or if you always want to use specific values regardless of what was last used in the AcroPlot Repro program then please pass in all of the Optional AcroPlot Repro Extended Command values.
 

Output Filename

-sOutputFile=filename where filename would be the full path and filename of the output file surrounded by quotation marks.  Example: -sOutputFile="C:\SomeDir\SomeFilename.tif"
For the output filename you can also use a template like "C:\SomeDir\SomeFilename-%03d.tif" where the %03d will be replaced with a 3 digit number based on the page that is being converted so 001 for page 1.  Available templates are %01d, %02d, %03d, %04d, %05d, %06d.
Please note that as of our 2011-11-30 release you must specify the %03d or equivalent parameter in preparation for support of multipage image formats and so we are more compatible with Ghostscript.  Otherwise for a multipage PDF file you will get only the last page of the file.  This does not pertain if you are specifying the -dFirstPage and -dLastPage parameters also and they are both the same.
 
 

Output Resolution

-rXXX where XXX is the output resolution.  Examples -r72 would be 72 dpi, -r300 would be 300 dpi.  We also support the legacy X by Y resolution (-r72x72 or -r72x36) although both X and Y resolutions will be the first X value since we do not support separate resolution values in AcroPlot Repro.
 
 

First Page to Convert (Optional)

-dFirstPage=X where X is the first page in the file to start converting
 
 

Last Page to Convert (Optional)

-dFirstPage=X where X is the last page in the file to stop converting at.
 
 

Quiet Operation (Optional)

-dQUIET - Suppresses warning and error messages.  Note: In demo mode the splash screen will still be displayed.
 
 

Dither Type for Monochrome Formats  (Optional AcroPlot Repro Extended Command)

Note:  Versions prior to 2013-08-01 used a -pXX (Note there is no equal sign) to specify the dither type like -p1 or -p10
*** -dDitherType=XX where XX is the dither type value from below
*** -dDitherType=-1 - Pass back to Ghostscript and allow it to convert the file
*** -dDitherType=0 - Error Diffusion Pattern 1
*** -dDitherType=1 - Error Diffusion Pattern 2
*** -dDitherType=2 - Error Diffusion Pattern 3
 
*** -dDitherType=4 - Clustered Dithering (36 Shades)
*** -dDitherType=5 - Clustered Dithering (64 Shades)
*** -dDitherType=6 - Clustered Dithering (100 Shades)
*** -dDitherType=7 - Clustered Dithering (144 Shades)
*** -dDitherType=8 - Clustered Dithering (196 Shades)
*** -dDitherType=9 - Clustered Dithering (256 Shades)
 
*** -dDitherType=10 - AcroPlot Repro Enhanced Dithering
*** -dDitherType=11 - AcroPlot Repro Enhanced Dithering 2
 
*** -dDitherType=100 - Force all to black
 
 

Remove White Space  (Optional AcroPlot Repro Extended Command)

*** -dRemoveWhiteSpace=0 - White space around the outside of the drawing will not be removed.
*** -dRemoveWhiteSpace=1 - This will attempt to remove all of the white space outside of the main image of the file.  Please note that if the PDF is a scanned in image and it has single pixels outside the main drawing border those will count as valid parts of the drawing and we may not remove that area.
 
 

Adjust Stroke  (Optional AcroPlot Repro Extended Command)

*** -dAdjustStroke=0 - Lines with thickness will be drawn exactly as calculated.  This might result in some lines being a pixel thicker than others.
*** -dAdjustStroke=1 - This will attempt to adjust the thickness of lines so similar lines end up displaying with the same thickness.  The side effect is that in some cases this may result in solid fill areas having gaps if they are made up of multiple thin lines.
 

Output Scale  (Optional AcroPlot Repro Extended Command)

*** -dScale=X.X  - Where X.X is a double value for the output scale in percentage. Hence outputting at full size would be -dScale=100.0 and half size would be -dScale=50.0.  Default is 100.0.
 
 

Brightness  (Optional AcroPlot Repro Extended Command)

*** -dBrightness=XXX - Where XXX is a long value for the brightness value to use with values between -100 and 100.  -dBrightness=0 is the default value and converts the drawing at the standard brightness as it's defined.
 
 

Minimum Line Width (Optional AcroPlot Repro Extended Command)

*** -dMinLineWidth=X - Where X is a long value for the minimum line width in pixels value to use with values between 1 and 4.  -dMinLineWidth=1 is the default value and converts the pdf as it was originally created.
 
 

PDF Password for Password Protected Documents  (Optional AcroPlot Repro Extended Command)

*** -sPDFPassword=password - The password should be wrapped in quotation marks like   -sPDFPassword="somepassword"
 
 

Display Progress Dialog  (Optional AcroPlot Repro Extended Command)

*** -dDialogProgress=X - Where -dDialogProgress=0 does not display our progress dialog box and  -dDialogProgress=1 does display it.  Please note that the -dQuiet command line switch will override all of these settings and turn off all warning and progress dialogs.
 
 

Display Missing Font Warning Dialog  (Optional AcroPlot Repro Extended Command)

*** -dDialogFont=X - Where -dDialogFont=0 does not display our missing fonts warning dialog box and  -dDialogFont=1 does display it.  Please note that the -dQuiet command line switch will override all of these settings and turn off all warning and progress dialogs.
 
 

Display Error Dialog  (Optional AcroPlot Repro Extended Command)

*** -dDialogErrors=X - Where -dDialogErrors=0 does not display our error dialog box and  -dDialogErrors=1 does display it.  Please note that the -dQuiet command line switch will override all of these settings and turn off all warning and progress dialogs.
 
 

Various Devices (Output Formats)

 
PNG Formats
-sDEVICE=png16m - 24-bit RGB Color PNG Image
***-sDEVICE=pnggray - 24-bit Grayscale PNG Image (AcroPlot Repro Extended Command)
-sDEVICE=pngmono - 1-bit Monochrome PNG Image
 
Unsupported Ghostscript PNG Devices at this time = pngalpha, png256, png16, pngmonod
Unsupported Ghostscript PNG Options at this time =  -dDownScaleFactor, -dMinFeatureSize, -dBackgroundColor
 
 
JPEG File Formats
-sDEVICE=jpeg - 24-bit RGB Color JPEG Image
-sDEVICE=jpeggray - 24-bit Grayscale JPEG Image
***-sDEVICE=jpegmono - 24-bit Monochrome JPEG Image (AcroPlot Repro Extended Command)
 
Unsupported Ghostscript JPEF Options at this time =  -dJPEGQ, -dQFactor
 
 
PNM File Formats
Unsupported at this time
 
 
TIFF File Formats
-sDEVICE=tiffgray - 8-bit Grayscale TIFF Image
*** -sDEVICE=tiffgraylzw - 8-bit Grayscale TIFF Image with LZW Compression  (AcroPlot Repro Extended Command)
*** -sDEVICE=tiffgraypack - 8-bit Grayscale TIFF Image with Packbits Compression (AcroPlot Repro Extended Command)
 
-sDEVICE=tiff24nc - 24-bit RGB Color TIFF Image
*** -sDEVICE=tiff24lzw - 24-bit RGB Color TIFF Image with LZW Compression  (AcroPlot Repro Extended Command)
*** -sDEVICE=tiff24pack - 24-bit RGB Color TIFF Image with Packbits Compression (AcroPlot Repro Extended Command)
 
-sDEVICE=tiffg4 - 1-bit Monochrome TIFF Image with G4 Fax Compression
-sDEVICE=tifflzw - 1-bit Monochrome TIFF Image with LZW Compression
-sDEVICE=tiffpack - 1-bit Monochrome TIFF Image with Packbits Compression
 
Unsupported Ghostscript TIFF Devices at this time = tiff12nc, tiff48nc, tiff32nc, tiff64nc, tiffsep, tiffsep1, tiffscaled, tiffscaled8, tiffscaled24, tiffcrle, tiffg3, tiffg32d,
Unsupported Ghostscript TIFF Options at this time = -dDownScaleFactor, -dMinFeatureSize, -dMaxStripSize, -dFillOrder, -sCompression, -dAdjustWidth,
 
 
Fax File Formats
Unsupported Ghostscript Fax Formats at this time = gaxg3, fax32d, faxg4
 
 
BMP File Formats
-sDEVICE=bmp16m - 24-bit Color BMP Image
-sDEVICE=bmpgray - 8-bit Grayscale BMP Image
-sDEVICE=bmpmono 1-bit Monochrome BMP Image
 
Unsupported Ghostscript BMP Formats at this time =  bmpsep1, bmpsep8, bmp16, bmp256, bmp32b
 
 
PCX File Formats
Unsupported at this time
 
 
GIF File Formats
*** -sDEVICE=gif - Color GIF Image  (AcroPlot Repro Extended Command)
*** -sDEVICE=gifgray - Grayscale GIF Image  (AcroPlot Repro Extended Command)
*** -sDEVICE=gifmono - Monochrome GIF Image  (AcroPlot Repro Extended Command)