18 #ifndef TESSERACT_API_RENDERER_H__
19 #define TESSERACT_API_RENDERER_H__
61 bool BeginDocument(
const char* title);
80 const char*
title()
const {
return title_; }
105 const char* extension);
108 virtual bool BeginDocumentHandler();
114 virtual bool EndDocumentHandler();
119 void AppendString(
const char* s);
125 void AppendData(
const char* s,
int len);
128 const char* file_extension_;
157 virtual bool BeginDocumentHandler();
159 virtual bool EndDocumentHandler();
175 virtual bool BeginDocumentHandler();
177 virtual bool EndDocumentHandler();
188 const char *datadir_;
190 void AppendPDFObjectDIY(
size_t objectsize);
192 void AppendPDFObject(
const char *data);
195 double width,
double height);
197 static bool imageToPDFObj(Pix *pix,
char *
filename,
long int objnum,
198 char **pdf_object,
long int *pdf_object_size);
226 #endif // TESSERACT_API_RENDERER_H__
struct TessResultRenderer TessResultRenderer
struct TessUnlvRenderer TessUnlvRenderer
void insert(LIST list, void *node)
struct TessTextRenderer TessTextRenderer
struct TessBaseAPI TessBaseAPI
const char * title() const
struct TessBoxTextRenderer TessBoxTextRenderer
TessResultRenderer * next()
struct TessHOcrRenderer TessHOcrRenderer
struct TessPDFRenderer TessPDFRenderer
const char * file_extension() const