DynaPDF Manual - Page 358

Previous Page 357   Index   Next Page 359

Function Reference
Page 358 of 839
FreeImageObj
Syntax:
LBOOL pdfFreeImageObj(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Image handle
The function releases memory that was allocated by GetImageObj() to decompress the image.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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.
 

Previous topic: FlushPagesEx, FreeImageBuffer

Next topic: FreeTextAnnot