PDFReadingMode
Parameter PDFReadingMode
defines how to handle PDF files.
Example
{
"PDFReadingMode":
{
"Mode": "PDFRM_RASTER",
"DPI": 300,
"RasterDataSource": "RDS_RASTERIZED_PAGES"
}
}
Parameter Summary
Parameter PDFReadingMode
is configured by a PDF reading mode objects. The PDF reading mode object includes a candidate mode and a series of mode arguments. The available mode arguments of the PDF reading mode object is shown as follow.
Mode Arguments
Mode Argument Name | Mode Argument Summary |
---|---|
Mode | Description Specifies the operation mode. |
Type String |
|
Candidate Mode List PDFRM_VECTOR PDFRM_RASTER |
|
DPI | Description Specifies the DPI used when rasterizing a PDF into images. |
Type int |
|
Range [100,3000] |
|
Default Value 300 |
|
RasterDataSource | Description Specifies a the target type. |
Type String |
|
Range One of the candidate mode as a string RDS_RASTERIZED_PAGES RDS_EXTRACTED_IMAGES |
|
Default Value RDS_RASTERIZED_PAGES |
Default Setting
If the PDFReadingMode
is not configured in your template file, the following settings will be used as the default setting.
{
"PDFReadingMode":
{
"Mode": "PDFRM_RASTER",
"DPI": 300,
"RasterDataSource": "RDS_RASTERIZED_PAGES"
}
}
Candidate Mode Introduction
PDFRM_RASTER
Converts the PDF file to image(s) first, then detects barcode
PDFRM_VECTOR
Detects barcode from vector data in PDF file.