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
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
BasicTypes.h
OCROptions.h
PDFDoc.h
UString.h
pdftron::PDF::OCRModule
Definition OCRModule.h:25
pdftron::PDF::OCRModule::GetOCRJsonFromImage
static UString GetOCRJsonFromImage(PDFDoc dst, const UString &src, OCROptions *options)
pdftron::PDF::OCRModule::GetOCRXmlFromImage
static UString GetOCRXmlFromImage(PDFDoc dst, const UString &src, OCROptions *options)
pdftron::PDF::OCRModule::IsModuleAvailable
static bool IsModuleAvailable()
pdftron::PDF::OCRModule::ProcessPDF
static void ProcessPDF(PDFDoc dst, OCROptions *options)
pdftron::PDF::OCRModule::ApplyOCRJsonToPDF
static void ApplyOCRJsonToPDF(PDFDoc dst, const UString &json)
pdftron::PDF::OCRModule::GetOCRXmlFromPDF
static UString GetOCRXmlFromPDF(PDFDoc src, OCROptions *options)
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)
pdftron::PDF::OCRModule::IsIRISModuleAvailable
static bool IsIRISModuleAvailable()
pdftron::PDF::OCRModule::ApplyOCRXmlToPDF
static void ApplyOCRXmlToPDF(PDFDoc dst, const UString &xml)
pdftron::PDF::OCROptions
Definition OCROptions.h:11
pdftron::PDF::PDFDoc
Definition PDFDoc.h:72
pdftron::UString
Definition UString.h:28
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10