API referenceImport & Output APIs

pdfNewContentStream

Start a new content stream on the current page (ABI compatibility).

Purpose — Start a new content stream on the current page (ABI compatibility).

Description — Ensures the page has a content stream and increments the logical stream counter. Content still goes into the page's single physical stream — the call exists so code written against the multi-stream ABI keeps its handle bookkeeping consistent.

C
int32_t __stdcall pdfNewContentStream(PPDF IPDF);

Return value — The new logical stream count (> 0); 0 if no page is open.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfNewContentStream(IntPtr IPDF);
Area
Import & Output APIs
Category

Core

Exported names

pdfNewContentStream

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.