DynaPDF Manual - Page 347

Previous Page 346   Index   Next Page 348

Function Reference
Page 347 of 821
FreeImageObjEx
Syntax:
LBOOL pdfFreeImageObjEx(
const PPDF* IPDF,
// Instance pointer
const void* ImagePtr) // Image pointer
The function releases memory that was allocated by GetImageObjEx() to decompress the image.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
FreePDF
Syntax:
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.
FreeTextAnnot
Syntax:
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
 

Previous topic: FlushPagesEx, FreeImageBuffer, FreeImageObj

Next topic: FreeUniBuf, Get3DAnnotStream, GetActionCount


Start Chat