All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OCROptions.h
Go to the documentation of this file.
1 // This file is autogenerated: please see the codegen template "Options"
2 #ifndef PDFTRON_H_CPPPDFOCROptions
3 #define PDFTRON_H_CPPPDFOCROptions
4 
5 #include <PDF/OptionsBase.h>
6 #include <Common/UString.h>
7 
8 namespace pdftron{ namespace PDF{
9 
11 {
12 public:
13  OCROptions();
14  ~OCROptions();
15 
16 
25  bool GetAutoRotate();
26 
36  OCROptions& SetAutoRotate(bool value);
37 
38 
63  int GetDPI();
64 
90  OCROptions& AddDPI(int dpi);
91 
92 
103  bool GetIgnoreExistingText();
104 
116  OCROptions& SetIgnoreExistingText(bool value);
117 
118 
128  bool GetIncludeExistingText();
129 
140  OCROptions& SetIncludeExistingText(bool value);
141 
142 
169  OCROptions& AddIgnoreZonesForPage(const RectCollection& regions, int page_num);
170 
171 
172 
208  OCROptions& AddLang(const UString& lang);
209 
210 
219 
228  OCROptions& SetOCREngine(const UString& value);
229 
230 
231 
243  OCROptions& AddTextZonesForPage(const RectCollection& regions, int page_num);
244 
245 
272  bool GetUsePDFPageCoords();
273 
301  OCROptions& SetUsePDFPageCoords(bool value);
302 
303  // @cond PRIVATE_DOC
304  #ifndef SWIGHIDDEN
305  SDF::Obj& GetInternalObj();
306 
307 private:
308 
309  SDF::ObjSet m_obj_set;
310  SDF::Obj m_dict;
311  #endif
312  // @endcond
313 };
314 
315 }
316 }
317 
318 #include "../Impl/OCROptions.inl"
319 #endif // PDFTRON_H_CPPPDFOCROptions
OCROptions & SetIgnoreExistingText(bool value)
OCROptions & AddTextZonesForPage(const RectCollection &regions, int page_num)
OCROptions & SetIncludeExistingText(bool value)
OCROptions & AddIgnoreZonesForPage(const RectCollection &regions, int page_num)
OCROptions & SetAutoRotate(bool value)
OCROptions & SetUsePDFPageCoords(bool value)
OCROptions & AddDPI(int dpi)
OCROptions & AddLang(const UString &lang)
OCROptions & SetOCREngine(const UString &value)