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.

C++ int delete_pvf(string filename)<br />

C# Java int delete_pvf(String filename)<br />

Perl PHP int <strong>TET</strong>_delete_pvf(resource tet, string filename)<br />

VB Function delete_pvf(filename As String) As Long<br />

C int <strong>TET</strong>_delete_pvf(<strong>TET</strong> *tet, const char *filename, int len)<br />

Delete a named virtual file and free its data structures (but not the contents).<br />

filename (Name string) The name of the virtual file as supplied to <strong>TET</strong>_create_pvf( ).<br />

len (C language binding only) Length of filename (in bytes) for UTF-16 strings. If len=0<br />

a null-terminated string must be provided.<br />

Returns<br />

Details<br />

-1 if the corresponding virtual file exists but is locked, and 1 otherwise.<br />

If the file isn’t locked, <strong>TET</strong> will immediately delete the data structures associated with<br />

filename. If filename does not refer to a valid virtual file this function will silently do<br />

nothing. After successfully calling this function filename may be reused. All virtual files<br />

will automatically be deleted in <strong>TET</strong>_delete( ).<br />

The detailed semantics depend on whether or not the copy option has been supplied<br />

to the corresponding call to <strong>TET</strong>_create_pvf( ): If the copy option has been supplied, both<br />

the administrative data structures for the file and the actual file contents (data) will be<br />

freed; otherwise, the contents will not be freed, since the client is supposed to do so.<br />

126 Chapter 10: <strong>TET</strong> Library API Reference

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

Saved successfully!

Ooh no, something went wrong!