JSON Bitmap Parameters
Describes a list of parameters used specifically in the rasterization of a PDF, PS, AFP or PCL file, defining which pages of the source file have to be converted to a bitmap and the properties of the resulting bitmap(s).
Structure
The structure consists of an object
with the following optional name/value pairs:
-
type
– the image type/format to be used in the creation of the image (value of eitherjpg
,jpeg
orpng
)
(type ofstring
– default value ofjpg
) -
pages
– the page range to be output; this counts over all pages even if one of the sections is configured to restart page numbers
(type ofstring
– default value is determined by the value of thearchive
parameter. If thearchive
parameter is specified tofalse
, then the default value will be1
. If the archive parameter is either omitted or specified to a value oftrue
, then the default value will be * (all pages) ) -
archive
– whether to return the result as a ZIP file/archive;true
means return the result as ZIP file,false
as a JPEG or PNG file
(type ofboolean
– default value is automatic:false
if the output consists of a single file,true
if the output consists of multiple files) -
dpi
– the target image resolution in dots per inch (DPI)
(type ofnumber
– default value of96
) -
scale
– the scale of the target image
(type offloat
– default value of1.0
)
Specific to parameters with a type
parameter specified to a value of jpg
, the following optional name/value pair can be specified:
-
quality
– the image quality of the preview (value ranging from0-100
)
(type ofnumber
– Default value of100
)
Example
The following is an example of this structure:
{
"type": "png",
"dpi": 150,
"archive": true,
"pages": "1,3,6-11"
}
{
"type": "jpg",
"quality": 90
}