C
int32_t __stdcall pdfGetPageCount(PPDF IPDF);
int32_t __stdcall pdfGetPageNum(PPDF IPDF);
Delphi
function pdfGetPageCount(const IPDF: PPDF): Integer; stdcall;
function pdfGetPageNum(const IPDF: PPDF): Integer; stdcall;
Purpose. Total page count in the document; the 1-based number of whichever page is currently open.
Return value. pdfGetPageCount: total pages; 0 if IPDF invalid. pdfGetPageNum: current page number; 0 if no page is open.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetPageCount(IntPtr IPDF);
Area
Core SDK
Category
Getters
Exported names
pdfGetPageCount
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.