All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OCRModule.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7 
8 #ifndef PDFTRON_H_CPPPDFOCRModule
9 #define PDFTRON_H_CPPPDFOCRModule
10 #include <C/PDF/TRN_OCRModule.h>
11 
12 #include <Common/BasicTypes.h>
13 #include <Common/UString.h>
14 #include <PDF/PDFDoc.h>
15 #include <PDF/OCROptions.h>
16 
17 namespace pdftron { namespace PDF {
18 class PDFDoc;
19 
24 class OCRModule
25 {
26 public:
27 
28  //methods:
29 
35  static bool IsModuleAvailable();
36 
44  static void ImageToPDF(PDFDoc dst, const UString& src, OCROptions* options);
45 
52  static void ProcessPDF(PDFDoc dst, OCROptions* options);
53 
62  static UString GetOCRJsonFromImage(PDFDoc dst, const UString& src, OCROptions* options);
63 
71  static UString GetOCRJsonFromPDF(PDFDoc src, OCROptions* options);
72 
79  static void ApplyOCRJsonToPDF(PDFDoc dst, const UString& json);
80 
89  static UString GetOCRXmlFromImage(PDFDoc dst, const UString& src, OCROptions* options);
90 
98  static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions* options);
99 
106  static void ApplyOCRXmlToPDF(PDFDoc dst, const UString& xml);
107 
108 };
109 
110 #include <Impl/OCRModule.inl>
111 } //end pdftron
112 } //end PDF
113 
114 
115 #endif //PDFTRON_H_CPPPDFOCRModule
static void ProcessPDF(PDFDoc dst, OCROptions *options)
static void ApplyOCRXmlToPDF(PDFDoc dst, const UString &xml)
static void ApplyOCRJsonToPDF(PDFDoc dst, const UString &json)
static UString GetOCRJsonFromImage(PDFDoc dst, const UString &src, OCROptions *options)
static UString GetOCRJsonFromPDF(PDFDoc src, OCROptions *options)
static void ImageToPDF(PDFDoc dst, const UString &src, OCROptions *options)
static UString GetOCRXmlFromImage(PDFDoc dst, const UString &src, OCROptions *options)
static bool IsModuleAvailable()
static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions *options)