API reference › Import & Output APIs
pdfFlushPages
Flush finished pages to the output file (streaming ABI).
Purpose — Flush finished pages to the output file (streaming ABI).
Description — As with pdfFlushPageContent, pages are written in one pass at close; the call succeeds whenever a document is open so memory-conscious portable code runs unchanged. Memory is not released early — for very large documents prefer generating in segments and merging via the import APIs (E02).
BOOL32 __stdcall pdfFlushPages(PPDF IPDF, uint32_t Flags);
Return value — TRUE when a document is open; FALSE otherwise. Flags is ignored.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfFlushPages
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.