 | OcrPdfRendererCreate Method |
Create new instance of OcrPdfRenderer class.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.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 String
- Path to the output file without extension
- dataPath String (Optional)
- Path to the directory with pdf.ttf file.
- textOnly Boolean (Optional)
- 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
OcrPdfRendererNew instance of renderer. Throw exception if any errors occurs
Exceptions
See Also