Barcode |
Options for barcode and QR code recognition
Detected barcodes are written either to the document's XMP metadata (Embed) or to a caller-supplied XML stream (Extract), depending on Mode.
Barcode detection is performed by the OCR engine and depends on the type and settings of the engine as well as the parameters ImageOptions and PageOptions. To enable recognition, all three of the following must be configured: (1) pass an engine created with Engine.Create("barcodes") to Process(Document, Engine, Stream, OcrOptions, OutputOptions); (2) set Mode to Embed or Extract; (3) configure PageOptions or ImageOptions so that pages are submitted to the engine (typically Mode = All).
Setting Mode alone has no effect.
Note: Available only on Windows x86 and x64.
public class BarcodeOptions : NativeObject
The BarcodeOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| BarcodeOptions |
| Name | Description | |
|---|---|---|
| Mode | How recognized barcodes are returned Default value: None | |
| XmlOutputStream | Stream that receives recognized barcodes as XML Required if and only if Mode is Extract. Default value: |
| Name | Description | |
|---|---|---|
| Equals | (Inherited from NativeObject) | |
| GetHashCode | (Inherited from NativeObject) |