 | OcrPdfRendererCreate Method |
Create new instance of OcrPdfRenderer class.
Namespace:
Patagames.Ocr
Assembly:
Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.2.411
Syntaxpublic static OcrPdfRenderer Create(
string outputbase,
string dataPath = "tessdata",
bool textOnly = false
)
Public Shared Function Create (
outputbase As String,
Optional dataPath As String = "tessdata",
Optional textOnly As Boolean = false
) As OcrPdfRenderer
public:
static OcrPdfRenderer^ Create(
String^ outputbase,
String^ dataPath = L"tessdata",
bool textOnly = false
)
static member Create :
outputbase : string *
?dataPath : string *
?textOnly : bool
(* Defaults:
let _dataPath = defaultArg dataPath "tessdata"
let _textOnly = defaultArg textOnly false
*)
-> OcrPdfRenderer
public static OcrPdfRenderer Create(
String outputbase,
String dataPath = "tessdata",
boolean textOnly = false
)
Patagames.Ocr.OcrPdfRenderer.Create = function(outputbase, dataPath, textOnly);
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:
OcrPdfRendererNew instance of renderer. Throw exception if any errors occurs
Exceptions
See Also