Click or drag to resize
Pdftools logo

EngineCreate Method

Create a new OCR engine

The name argument selects the OCR engine. Two engine names are supported:
  • "service": HTTP-based text OCR engine. The endpoint URL is supplied after an "@" suffix, e.g. "service@http://localhost:7982/". Multiple endpoints may be given as a semicolon-separated list for failover, e.g. "service@http://host1:7982/;http://host2:7982/". When no URL is given, "http://localhost:7982/" is used by default.
  • "barcodes": Barcode and QR code recognition engine. Takes no additional parameters. Available only on Windows x86 and x64.

Namespace: PdfTools.Ocr
Assembly: PdfTools (in PdfTools.dll) Version: 1.20.0+32c3b3a21152d09e640f60dd999580d661b73c71
Syntax
C#
public static Engine Create(
	string name
)

Parameters

name  String
The engine name and optional creation parameters.

Return Value

Engine
The newly created engine instance.
Exceptions
ExceptionCondition
GenericExceptionThe engine could not be created, e.g. because the engine is not available.
ArgumentExceptionThe name argument is invalid.
ArgumentNullExceptionif name is .
See Also