Purpose — Quick liveness/diagnostic probe.
Description — Returns pageCount + fontCount + imageCount of the document under construction — a cheap non-zero sanity signal for logging. It does not parse or validate a PDF file; use the import APIs or a validator for that.
C
int32_t __stdcall pdfDebugPDFFile(PPDF IPDF);
Style & state snapshots
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfDebugPDFFile(IntPtr IPDF);
Area
Import & Output APIs
Category
Core
Exported names
pdfDebugPDFFile
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.