Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
PDFReadingMode
is a parameter to control how to read barcodes from PDF files.
Lets the library choose a mode automatically.
Detects barcode from vector data in PDF file.
Converts the PDF file to image(s) first, then detects barcode.
PublicRuntimeSettings
MemberPDFReadingMode
can be set dynamically during runtime as a member of PublicRuntimeSettings
struct, it is one of the PDFReadingMode
Enumeration items.
Code Snippet in C++
//...other codes
PublicRuntimeSettings* pSettings = new PublicRuntimeSettings;
int errorCode = reader->GetRuntimeSettings(pSettings);
pSettings->pdfReadingMode = PDFRM_VECTOR;
reader->UpdateRuntimeSettings(pSettings);
delete pSettings;
//...other codes
See Also
PublicRuntimeSettings:
JavaScript | C | C++ | .NET | Python | Java | Java-Android | Objective-C & SwiftPDFReadingMode
EnumerationPDFReadingMode
as a JSON parameter is a string value defined as below.
Key Name | Key Value |
---|---|
PDFReadingMode | Any one in PDFReadingMode Enumeration as string |
JSON Parameter Example
{
"PDFReadingMode": "PDFRM_VECTOR"
}
Setting PDFReadingMode
to PDFRM_VECTOR or PDFRM_RASTER when barcode type (image or vector) in PDF file is certain may speed up the process.
Setting PDFReadingMode
to PDFRM_AUTO when barcode type (image or vector) in PDF file is uncertain may improve the Read Rate.
PDFReadingMode
has no influence on the Accuracy.
latest version