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.

tion occurs, the job log shows the error number, the function that failed and the reason<br />

for the exception. <strong>TET</strong> sends an escape message to the calling program.<br />

c eval p=<strong>TET</strong>_new<br />

*<br />

c monitor<br />

*<br />

c callp <strong>TET</strong>_set_option(tet:globaloptlist)<br />

c eval doc=<strong>TET</strong>_open_document(tet:%ucs2(%trim(parm1)):docoptlist)<br />

:<br />

:<br />

* Error Handling<br />

c on-error<br />

* Do something with this error<br />

* don’t forget to free the <strong>TET</strong> object<br />

c callp <strong>TET</strong>_delete(tet)<br />

c endmon<br />

42 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!