pdfGetInDocInfoCount
Number of entries in the import source's /Info dictionary.
| Category | Document metadata (import) |
|---|
Purpose — Number of entries in the import source's /Info dictionary.
Declarations
int32_t __stdcall pdfGetInDocInfoCount(PPDF IPDF);
function pdfGetInDocInfoCount(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';
Return value — Entry count of the import file's raw /Info dictionary (counts *every* key present in the source PDF, including nonstandard ones — unlike pdfGetInDocInfoEx, which can only surface the ones with a recognized TDocumentInfo mapping). Returns the sentinel NO_IMPORT_ERR (-1073742011) — not 0 — when no import source is open; check pdfHaveOpenDoc-style import-open state, or expect a large negative value rather than zero, if you call this before opening an import file.
See also — pdfGetInDocInfoEx
C# (P/Invoke)
public static extern int pdfGetInDocInfoCount(IntPtr IPDF);
Getters
pdfGetInDocInfoCount
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.