InvoiceParser ClassByteScout Invoice Parser SDK
Represents an invoice parser that finds and extracts common data from invoice in PDF or raster image formats.
Inheritance Hierarchy

SystemObject
  ByteScout.InvoiceParserInvoiceParser

Namespace:  ByteScout.InvoiceParser
Assembly:  ByteScout.InvoiceParser (in ByteScout.InvoiceParser.dll) Version: 3.0.0.357-master
Syntax

public class InvoiceParser : IDisposable

The InvoiceParser type exposes the following members.

Constructors

  NameDescription
Public methodInvoiceParser
Initializes a new instance of the InvoiceParser class.
Public methodInvoiceParser(String, String)
Initializes a new instance of the InvoiceParser class.
Top
Properties

  NameDescription
Public propertyFallbackToGenericTemplate
Gets or sets whether to use the generic template if the document does not match the preset template. The generic template contains only common parsing fields like "Total", "Subtotal", "Date", etc.
Public propertyIgnorePDFPermissions
This option instructs if the SDK should ignore permissions in the PDF document and not generate ParserPermissionsException when permissions is not set for the desired action.

Default is false.

IMPORTANT: THIS OPTION HAVE NOT TO BE ENABLED TO RESPECT OWNERS OF PDF DOCUMENTS. IF YOU SET IT TO TRUE TO IGNORE PERMISSIONS WHICH ARE SET IN PDF DOCUMENT THEN YOU ARE SOLELY LIABLE FOR THIS ACTION AND FOR ANY COPYRIGHT OR OTHER VIOLATIONS AT YOUR OWN RISK. BYTESCOUT IS NOT LIABLE FOR ANY DAMAGES, LOSSES, COPYRIGHT INFRINGEMENTS OR ANY OTHER CONSEQUENCES CAUSED BY IGNORING PERMISSIONS OF PDF DOCUMENT. BY CHANGING THIS OPTION YOU ARE CONFIRMING YOU ARE UNDERSTANDING ALL WRITTEN ABOVE AND DOING IT AT YOUR OWN RISK.

Public propertyLanguage
Gets or sets the default culture (language code) of input documents.
Public propertyLicenseInfo
Gets license information.
Public propertyOCRDetectPageRotation
Detect scanned page rotation.
Public propertyOCRImagePreprocessingFilters
Collection of image preprocessing filters.
Public propertyOCRLanguage
The default language for Optical Character Recognition (OCR). It can be overridden by the template option "ocrLanguage". The valid values are:
  • "eng" - English (default)
  • "deu" - German
  • "fra" - French
  • "spa" - Spanish
  • "nld" - Dutch

Download more languages at https://github.com/bytescout/ocrdata.

Public propertyOCRLanguageDataFolder
Folder containing OCR language data files.
Public propertyOCRMaximizeCPUUtilization
Gets or sets maximum OCR performance using Intel OpenMP (if available) to accelerate to approximately 30%. Default is false.
Public propertyOCRMode
Recognizes text from embedded images using Optical Character Recognition (OCR).

This option requires appropriate language files in OCRLanguageDataFolder folder. The SDK is shipped with language files for English, French, German and Spanish. You can download more at https://github.com/bytescout/ocrdata.

Public propertyOCRResolution
Resolution of Optical Character Recognition (OCR). Default is 300 DPI.
Public propertyRegistrationKey
Gets or sets the key number part of registration information.
Public propertyRegistrationName
Gets or sets the name part of the registration information.
Public propertyVersion
Gets component version number.
Top
Methods

  NameDescription
Public methodDispose
Releases managed resources of the component.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodLog
Protected methodMemberwiseClone (Inherited from Object.)
Public methodParseDocument(Stream, OutputFormat, Boolean)
Parse document.
Public methodParseDocument(String, OutputFormat, Boolean)
Parse document.
Public methodParseDocument(Stream, Stream, OutputFormat, Boolean)
Process document.
Public methodParseDocument(String, String, OutputFormat, Boolean)
Process document.
Public methodToString (Inherited from Object.)
Top
Events

  NameDescription
Public eventPasswordRequired
Occurs when a password is required to open PDF document.
Top
See Also

Reference