DynaPDF Manual - Page 357

Previous Page 356   Index   Next Page 358

Function Reference
Page 357 of 839
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.
Remarks:
PDF/A 4 output requires a cleanup run when closing the file. Links to color space resources must
might be changed in this run. This is only possible if parts of the document have not already been
written to the output file. Therefore, this function cannot be used for PDF/A 4 files.
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().
 

Previous topic: FlushPageContent, FlushPages

Next topic: FreeImageObj, FreeImageObjEx, FreePDF