API reference › Import & 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.
int32_t __stdcall pdfNewContentStream(PPDF IPDF);
Return value — The new logical stream count (> 0); 0 if no page is open.
C# (P/Invoke)
public static extern int pdfNewContentStream(IntPtr IPDF);
Core
pdfNewContentStream
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.