Documentation
Table of contents

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support