18 #ifndef TESSERACT_API_RENDERER_H_ 19 #define TESSERACT_API_RENDERER_H_ 62 bool BeginDocument(
const char* title);
81 const char*
title()
const {
return title_.c_str(); }
106 const char* extension);
109 virtual bool BeginDocumentHandler();
115 virtual bool EndDocumentHandler();
120 void AppendString(
const char* s);
126 void AppendData(
const char* s,
int len);
129 const char* file_extension_;
158 virtual bool BeginDocumentHandler();
160 virtual bool EndDocumentHandler();
175 virtual bool BeginDocumentHandler();
177 virtual bool EndDocumentHandler();
191 TessPDFRenderer(
const char* outputbase,
const char* datadir,
bool textonly);
194 virtual bool BeginDocumentHandler();
196 virtual bool EndDocumentHandler();
207 const char *datadir_;
210 void AppendPDFObjectDIY(
size_t objectsize);
212 void AppendPDFObject(
const char *data);
214 char* GetPDFTextObjects(
TessBaseAPI*
api,
double width,
double height);
216 static bool imageToPDFObj(Pix *pix,
char *
filename,
long int objnum,
217 char **pdf_object,
long int *pdf_object_size);
256 #endif // TESSERACT_API_RENDERER_H_ void insert(LIST list, void *node)
struct TessUnlvRenderer TessUnlvRenderer
struct TessPDFRenderer TessPDFRenderer
struct TessBaseAPI TessBaseAPI
struct TessTextRenderer TessTextRenderer
TessResultRenderer * next()
struct TessHOcrRenderer TessHOcrRenderer
const char * file_extension() const
const char * title() const
struct TessResultRenderer TessResultRenderer
struct TessBoxTextRenderer TessBoxTextRenderer