Pdftools SDK
Loading...
Searching...
No Matches
TPdfToolsOcr_BarcodeOptions Class Reference

Options for barcode and QR code recognition. More...

#include <PdfTools_Types.h>

Detailed Description

Options for barcode and QR code recognition.

Detected barcodes are written either to the document's XMP metadata (ePdfToolsOcr_BarcodeHandling_Embed) or to a caller-supplied XML stream (ePdfToolsOcr_BarcodeHandling_Extract), depending on PdfToolsOcr_BarcodeOptions_GetMode.

Barcode detection is performed by the OCR engine and depends on the type and settings of the engine as well as the parameters TPdfToolsOcr_ImageOptions and TPdfToolsOcr_PageOptions. To enable recognition, all three of the following must be configured: (1) pass an engine created with Engine.Create("barcodes") to PdfToolsOcr_Processor_Process; (2) set PdfToolsOcr_BarcodeOptions_GetMode to ePdfToolsOcr_BarcodeHandling_Embed or ePdfToolsOcr_BarcodeHandling_Extract; (3) configure TPdfToolsOcr_PageOptions or TPdfToolsOcr_ImageOptions so that pages are submitted to the engine (typically PdfToolsOcr_PageOptions_GetMode = ePdfToolsOcr_PageProcessingMode_All).

Setting PdfToolsOcr_BarcodeOptions_GetMode alone has no effect.

Note: Available only on Windows x86 and x64.


The documentation for this class was generated from the following file: