Loading...
Searching...
No Matches
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
17namespace pdftron { namespace PDF {
18class PDFDoc;
19
25{
26public:
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
83
90 static void ApplyOCRJsonToPDF(PDFDoc dst, const UString& json);
91
102 static UString GetOCRXmlFromImage(PDFDoc dst, const UString& src, OCROptions* options);
103
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 UString GetOCRJsonFromImage(PDFDoc dst, const UString &src, OCROptions *options)
static UString GetOCRXmlFromImage(PDFDoc dst, const UString &src, OCROptions *options)
static bool IsModuleAvailable()
static void ProcessPDF(PDFDoc dst, OCROptions *options)
static void ApplyOCRJsonToPDF(PDFDoc dst, const UString &json)
static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions *options)
static UString GetOCRJsonFromPDF(PDFDoc src, OCROptions *options)
static void ImageToPDF(PDFDoc dst, const UString &src, OCROptions *options)
static bool IsIRISModuleAvailable()
static void ApplyOCRXmlToPDF(PDFDoc dst, const UString &xml)