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-2024 by Apryse Software 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 
42  static bool IsIRISModuleAvailable();
43 
51  static void ImageToPDF(PDFDoc dst, const UString& src, OCROptions* options);
52 
59  static void ProcessPDF(PDFDoc dst, OCROptions* options);
60 
71  static UString GetOCRJsonFromImage(PDFDoc dst, const UString& src, OCROptions* options);
72 
82  static UString GetOCRJsonFromPDF(PDFDoc src, OCROptions* options);
83 
90  static void ApplyOCRJsonToPDF(PDFDoc dst, const UString& json);
91 
102  static UString GetOCRXmlFromImage(PDFDoc dst, const UString& src, OCROptions* options);
103 
113  static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions* options);
114 
121  static void ApplyOCRXmlToPDF(PDFDoc dst, const UString& xml);
122 
123 };
124 
125 #include <Impl/OCRModule.inl>
126 } //end pdftron
127 } //end PDF
128 
129 
130 #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 IsIRISModuleAvailable()
static bool IsModuleAvailable()
static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions *options)