17.05.2014 Views

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.3 C++ Binding<br />

In addition to the tetlib.h C header file, an object-oriented wrapper for C++ is supplied<br />

for <strong>TET</strong> clients. It requires the tet.hpp header file, which in turn includes tetlib.h. The corresponding<br />

tet.cpp module must be linked against the application in addition to the generic<br />

<strong>TET</strong> C library.<br />

Using the C++ object wrapper replaces the functional approach with API functions<br />

and <strong>TET</strong>_ prefixes in all <strong>TET</strong> function names with a more object-oriented approach: a<br />

<strong>TET</strong> object offers methods, but the method names no longer have the <strong>TET</strong>_ prefix.<br />

The <strong>TET</strong> C++ binding will package Unicode text in standard C++ strings in UTF-16 format.<br />

Clients must be prepared to process such strings appropriately.<br />

24 Chapter 3: <strong>TET</strong> Library Language Bindings

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!