#include <renderer.h>
Public Member Functions | |
TessPDFRenderer (const char *outputbase, const char *datadir, bool textonly=false) | |
Public Member Functions inherited from tesseract::TessResultRenderer | |
virtual | ~TessResultRenderer () |
void | insert (TessResultRenderer *next) |
TessResultRenderer * | next () |
bool | BeginDocument (const char *title) |
bool | AddImage (TessBaseAPI *api) |
bool | EndDocument () |
const char * | file_extension () const |
const char * | title () const |
bool | happy () |
int | imagenum () const |
Protected Member Functions | |
virtual bool | BeginDocumentHandler () |
virtual bool | AddImageHandler (TessBaseAPI *api) |
virtual bool | EndDocumentHandler () |
Protected Member Functions inherited from tesseract::TessResultRenderer | |
TessResultRenderer (const char *outputbase, const char *extension) | |
void | AppendString (const char *s) |
void | AppendData (const char *s, int len) |
Private Member Functions | |
void | AppendPDFObjectDIY (size_t objectsize) |
void | AppendPDFObject (const char *data) |
char * | GetPDFTextObjects (TessBaseAPI *api, double width, double height) |
Static Private Member Functions | |
static bool | imageToPDFObj (Pix *pix, const char *filename, long int objnum, char **pdf_object, long int *pdf_object_size, const int jpg_quality) |
Private Attributes | |
long int | obj_ |
GenericVector< long int > | offsets_ |
GenericVector< long int > | pages_ |
std::string | datadir_ |
bool | textonly_ |
Renders tesseract output into searchable PDF
tesseract::TessPDFRenderer::TessPDFRenderer | ( | const char * | outputbase, |
const char * | datadir, | ||
bool | textonly = false |
||
) |
|
protectedvirtual |
Implements tesseract::TessResultRenderer.
|
private |
|
private |
|
protectedvirtual |
Reimplemented from tesseract::TessResultRenderer.
|
protectedvirtual |
Reimplemented from tesseract::TessResultRenderer.
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |