Click or drag to resize

OcrPdfRendererCreate Method

Create new instance of OcrPdfRenderer class.

Namespace:  Patagames.Ocr
Assembly:  Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.2.411
Syntax
public static OcrPdfRenderer Create(
	string outputbase,
	string dataPath = "tessdata",
	bool textOnly = false
)

Parameters

outputbase
Type: SystemString
Path to the output file without extension
dataPath (Optional)
Type: SystemString
Path to the directory with pdf.ttf file.
textOnly (Optional)
Type: SystemBoolean
Flag indicating whether to insert the original image into PDF. If true, then the image will not be added, and the PDF will contain only hidden text.

Return Value

Type: OcrPdfRenderer
New instance of renderer. Throw exception if any errors occurs
Exceptions
ExceptionCondition
CantCreateRendererExceptionThe renderer cannot be created for some reason.
See Also