API referenceCore SDK

pdfGetDocInfoCount

Number of document-info fields currently set.

CategoryDocument metadata

Purpose — Number of document-info fields currently set.

Declarations

C
int32_t __stdcall pdfGetDocInfoCount(PPDF IPDF);
Delphi
function pdfGetDocInfoCount(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';

Return value — Count of in-memory entries (0 if the handle is invalid). Seeded to 1 immediately after document creation — see Remarks.

Remarks — A fresh document always starts with one entry already present: diProducer is seeded to "Lumas PDF Engine" at creation time (matching the XMP pdf:Producer value this engine writes for PDF/A conformance), so pdfGetDocInfoCount returns 1, not 0, before you set anything.

See alsopdfGetDocInfoEx

C# (P/Invoke)

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

Getters

Exported names

pdfGetDocInfoCount

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.