DynaPDF Manual - Page 330

Previous Page 329   Index   Next Page 331

Function Reference
Page 330 of 787
The flag fpfImagesOnly can be used to flush the images in memory only. This can be useful if
further objects must be added to the pages in memory or if a large image was inserted.
It is allowed to call the function within an open page. In this case the function does not flush the
content stream of the current open page but anything else depending on the used flags.
Calling a function like DeletePage(), DeleteField() or any other function that deletes a flushed object
results in a damaged PDF file.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
FlushPagesEx
Syntax:
LBOOL pdfFlushPagesEx(
const PPDF* IPDF,
// Instance pointer
TFlushPageFlags Flags, // Various flags
UI32 LastPage)
// Last page that should be flushed or -1
The function writes the pages in memory to the PDF file exactly like FlushPages(). The only
difference is that the last page can be specified. The function calls FlushPages() if LastPage is
smaller 1.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
FreeImageBuffer
Syntax:
void pdfFreeImageBuffer(
const PPDF* IPDF) // Instance pointer
The function frees the buffer of a memory image that was created with the function CreateImage().
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.
 

Previous topic: FlushPageContent, FlushPages

Next topic: FreeImageObjEx, FreePDF, FreeTextAnnot

Start Chat