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.19.0+2160c7724ea9111cae8ed0e8ced3b10611191789
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