DynaPDF Manual - Page 323

Previous Page 322   Index   Next Page 324

Function Reference
Page 323 of 770
SI32 pdfFreePDF(
const PPDF* IPDF) // Instance pointer
The function frees all used resources with exception of the font and external CMap cache. The font
and external CMap caches will be only freed when unloading the DLL or deleting the current PDF
instance to improve processing speed. However, the font cache can be also be freed manually with
the function ClearHostFonts().
There is normally no need to free the used resources by DynaPDF manually except for memory PDF
files. When creating PDF files in memory the internal resources are not freed automatically after
CloseFile() or CloseFileEx() was called. After the PDF buffer was retrieved by GetBuffer() call
FreePDF() to free all internal used resources.
FreePDF() can be safely called at any time so that a PDF file can be deleted if necessary.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0. This function
can normally not fail; a return value of zero indicates that an unknown fatal error occurred.
SI32 pdfFreeTextAnnot(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the bounding rectangle
double PosY,
// Y-Coordinate of the bounding rectangle
double Width,
// Width of the bounding rectangle
double Height,
// Height of the bounding rectangle
const char* Author, // Author of the annotation (can be NULL)
const char* AText,
// The visible text of the annotation
TTextAlign Align)
// The text alignment see below
typedef enum
This function creates a Free Text annotation. The text of a Free Text annotation appears directly on
screen such as normal text of a page. However, Free Text annotations are used to add comments.
Comments can be excluded from printing if necessary (see SetAnnotFlags() for further information)
and the contents of a Free Text annotation can be edited in Adobe's Acrobat.

Previous topic: FreeImageBuffer, FreeImageObj, FreeImageObjEx

Next topic: FreeUniBuf