Conversion Format
-output-format
The output file format.
- Default:
png- Allowed Values:
-
-
png -
jpg -
gif -
tiff -
bmp -
ico -
ppm -
pgm -
pbm -
pnm -
psb -
pct -
ras -
tga -
sgi -
sun -
webp
-
General Options
-pdf-password
Password to open the encrypted PDF file.
-print-page-range
Set the page range to print.
- Constraint:
-
- A comma separated list of page numbers or ranges.
- Examples:
-
-
Just the second page is printed:
"2" -
The first and the third page are printed:
"1,3" -
Everything except the first page is printed:
"2-" -
Just the first 3 pages are printed:
"-3" -
Pages 3, 6, 7, 8 and 9 are printed:
"3,6-9"
-
Just the second page is printed:
-dpi
Set the output graphics DPI. Higher values increase quality but also file size. Use 72-96 for screen, 150 for web, 300 for print.
- Availability:
- API client >= 5.16.0, converter >= 20.10. See versioning.
- Default:
144
-force-zip
Enforce the zip output format. Get output as zip even for single images. Useful for consistent file handling in automated workflows.
- Default:
False- Allowed Values:
-
-
true, 1 or on -
false, 0 or off
-
-use-cropbox
Use the crop box rather than media box. Respects PDF crop settings for trimmed output. Use when PDFs have defined crop boundaries.
- Default:
False- Allowed Values:
-
-
true, 1 or on -
false, 0 or off
-
-crop-area-x
Set the top left X coordinate of the crop area in points.
- Constraint:
-
- Must be a positive integer or 0.
- Example:
-
-
Start crop at 1.4 inches from left:
100
-
Start crop at 1.4 inches from left:
-crop-area-y
Set the top left Y coordinate of the crop area in points.
- Constraint:
-
- Must be a positive integer or 0.
- Example:
-
-
Start crop at 1.4 inches from top:
100
-
Start crop at 1.4 inches from top:
-crop-area-width
Set the width of the crop area in points.
- Constraint:
-
- Must be a positive integer or 0.
- Default:
PDF page width.- Example:
-
-
Narrow 1.4 inch crop width:
100
-
Narrow 1.4 inch crop width:
-crop-area-height
Set the height of the crop area in points.
- Constraint:
-
- Must be a positive integer or 0.
- Default:
PDF page height.- Example:
-
-
Small 1.4 inch crop height:
100
-
Small 1.4 inch crop height:
-use-grayscale
Generate a grayscale image. Reduces file size and creates professional black-and-white output for printing or document archival.
- Default:
False- Allowed Values:
-
-
true, 1 or on -
false, 0 or off
-
Miscellaneous
-debug-log
Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics.
- Default:
False- Allowed Values:
-
-
true, 1 or on -
false, 0 or off
-
-tag
Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.
- Example:
-
-
Track job in analytics:
"client-1234"
-
Track job in analytics:
-http-proxy
A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.
- Constraint:
-
- The value must have format DOMAIN_OR_IP_ADDRESS:PORT.
- Examples:
-
-
Corporate proxy server:
"myproxy.com:8080" -
Direct IP proxy connection:
"113.25.84.10:33333"
-
Corporate proxy server:
-https-proxy
A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.
- Constraint:
-
- The value must have format DOMAIN_OR_IP_ADDRESS:PORT.
- Examples:
-
-
Secure proxy for HTTPS:
"myproxy.com:443" -
Direct secure proxy IP:
"113.25.84.10:44333"
-
Secure proxy for HTTPS: