API referenceImport & 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).

C
BOOL32 __stdcall pdfFlushPages(PPDF IPDF, uint32_t Flags);

Return valueTRUE when a document is open; FALSE otherwise. Flags is ignored.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category

Core

Exported names

pdfFlushPages

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.