pdfGetInDocInfoEx
Enumerate the import source's document-info entries by index,
| Category | Document metadata (import) |
|---|
Purpose — Enumerate the import source's document-info entries by index, mapped back to TDocumentInfo where recognized.
Description — Walks the same fixed 12-slot key table as pdfGetInDocInfo (Author, Creator, Keywords, Producer, Subject, Title, *(no diCompany key)*, GTS_PDFXVersion, *(no diCustom key)*, GTS_PDFXConformance, CreationDate, ModDate) — Index here indexes into this fixed table by position, not into the raw /Info dictionary's actual key set (contrast with pdfGetInDocInfoCount, which counts the raw dictionary). On failure, Ord_ defaults to 8 (diCustom) as a sentinel.
Declarations
BOOL32 __stdcall pdfGetInDocInfoEx(PPDF IPDF, uint32_t Index, TDocumentInfo* DInfo, const char* Key, const char* Value, BOOL32* Unicode);
function pdfGetInDocInfoEx(const IPDF: PPDF; Index: Cardinal; var DInfo: TDocumentInfo; var Key, Value: PAnsiChar; var Unicode: LongBool): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle with an open import source. |
Index | Cardinal | Position in the fixed 12-entry key table (not the raw dictionary's key order). |
DInfo | TDocumentInfo* | Receives the ordinal; 8 (diCustom) on failure. |
Key | PAnsiChar* | Always NULL in this build. |
Value | PAnsiChar* | Receives the value (empty if this slot has no data in the source file). |
Unicode | BOOL32* | Always FALSE. |
Return value — TRUE if Index is 0..11 and the import source is open; FALSE otherwise (this call does not fail just because a given slot's value is empty — check Value for that).
See also — pdfGetInDocInfo
Structure tree
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetInDocInfoEx
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.