API referenceCore SDK

pdfGetInDocInfoCount

Number of entries in the import source's /Info dictionary.

CategoryDocument metadata (import)

Purpose — Number of entries in the import source's /Info dictionary.

Declarations

C
int32_t __stdcall pdfGetInDocInfoCount(PPDF IPDF);
Delphi
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 alsopdfGetInDocInfoEx

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetInDocInfoCount(IntPtr IPDF);
Area
Core SDK
Category

Getters

Exported names

pdfGetInDocInfoCount

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.