API reference › Import & Output APIs
pdfContentStreamCount
Number of content streams of the current page.
Purpose — Number of content streams of the current page.
Description — In the single-stream model this is 1 when the open page has content, else 0 — except that pdfNewContentStream increments a logical counter which this call then reports.
C
int32_t __stdcall pdfContentStreamCount(PPDF IPDF);
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfContentStreamCount(IntPtr IPDF);
Area
Import & Output APIs
Category
Core
Exported names
pdfContentStreamCount
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.