18 #ifndef TESSERACT_API_RENDERER_H_ 19 #define TESSERACT_API_RENDERER_H_ 25 #include "genericvector.h" 62 bool BeginDocument(
const char* title);
81 const char*
title()
const {
return title_.c_str(); }
109 const char* extension);
112 virtual bool BeginDocumentHandler();
115 virtual bool AddImageHandler(
TessBaseAPI* api) = 0;
118 virtual bool EndDocumentHandler();
123 void AppendString(
const char* s);
129 void AppendData(
const char* s,
int len);
161 virtual bool BeginDocumentHandler();
163 virtual bool EndDocumentHandler();
178 virtual bool BeginDocumentHandler();
180 virtual bool EndDocumentHandler();
193 TessPDFRenderer(
const char* outputbase,
const char* datadir,
bool textonly =
false);
196 virtual bool BeginDocumentHandler();
198 virtual bool EndDocumentHandler();
212 void AppendPDFObjectDIY(
size_t objectsize);
214 void AppendPDFObject(
const char *data);
216 char* GetPDFTextObjects(
TessBaseAPI* api,
double width,
double height);
218 static bool imageToPDFObj(Pix* pix,
const char* filename,
long int objnum,
219 char** pdf_object,
long int* pdf_object_size,
const int jpg_quality);
245 #ifndef DISABLED_LEGACY_ENGINE 258 #endif // ndef DISABLED_LEGACY_ENGINE 262 #endif // TESSERACT_API_RENDERER_H_ Definition: renderer.h:250
bool happy_
Definition: renderer.h:138
bool happy()
Definition: renderer.h:84
std::string datadir_
Definition: renderer.h:209
Definition: renderer.h:144
Definition: renderer.h:155
bool textonly_
Definition: renderer.h:210
int imagenum() const
Definition: renderer.h:95
GenericVector< long int > offsets_
Definition: renderer.h:207
const char * title() const
Definition: renderer.h:81
Definition: renderer.h:189
Definition: baseapi.cpp:94
int imagenum_
Definition: renderer.h:134
Definition: renderer.h:226
STRING title_
Definition: renderer.h:133
Definition: renderer.h:45
FILE * fout_
Definition: renderer.h:136
GenericVector< long int > pages_
Definition: renderer.h:208
TessResultRenderer * next_
Definition: renderer.h:137
Definition: renderer.h:172
TessResultRenderer * next()
Definition: renderer.h:55
const char * file_extension() const
Definition: renderer.h:80
const char * file_extension_
Definition: renderer.h:132
bool font_info_
Definition: renderer.h:183
Definition: renderer.h:237
long int obj_
Definition: renderer.h:206
bool font_info_
Definition: renderer.h:166
Definition: baseapi.h:101