- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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-2025 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
pdftron::PDF::OCRModule::ProcessPDF
static void ProcessPDF(PDFDoc dst, OCROptions *options)
pdftron::PDF::OCRModule::ApplyOCRXmlToPDF
static void ApplyOCRXmlToPDF(PDFDoc dst, const UString &xml)
pdftron::PDF::OCRModule
Definition: OCRModule.h:24
pdftron::PDF::OCRModule::ApplyOCRJsonToPDF
static void ApplyOCRJsonToPDF(PDFDoc dst, const UString &json)
UString.h
pdftron::PDF::OCROptions
Definition: OCROptions.h:10
pdftron::PDF::OCRModule::GetOCRJsonFromImage
static UString GetOCRJsonFromImage(PDFDoc dst, const UString &src, OCROptions *options)
OCROptions.h
pdftron::PDF::PDFDoc
Definition: PDFDoc.h:71
pdftron::PDF::OCRModule::GetOCRJsonFromPDF
static UString GetOCRJsonFromPDF(PDFDoc src, OCROptions *options)
pdftron::PDF::OCRModule::ImageToPDF
static void ImageToPDF(PDFDoc dst, const UString &src, OCROptions *options)
PDFDoc.h
BasicTypes.h
pdftron::PDF::OCRModule::GetOCRXmlFromImage
static UString GetOCRXmlFromImage(PDFDoc dst, const UString &src, OCROptions *options)
pdftron::PDF::OCRModule::IsIRISModuleAvailable
static bool IsIRISModuleAvailable()
pdftron::PDF::OCRModule::IsModuleAvailable
static bool IsModuleAvailable()
pdftron::PDF::OCRModule::GetOCRXmlFromPDF
static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions *options)
pdftron::UString
Definition: UString.h:27