| Category | Document metadata (import) |
|---|
Purpose — Read a document-info field from the currently open import source (not the output document).
Description — Reads directly from the import file's parsed /Info dictionary — this is a live read of someone else's PDF, so unlike the output side, diCompany/diPDFX_Ver(7)/diCustom(8)/diPDFX_Conf(9) that lack a standard key name (Company and Custom have none in the reference /Info schema either) simply return nothing; there is no equivalent "silently dropped at write time" issue here since this path never writes.
Declarations
int32_t __stdcall pdfGetInDocInfo(PPDF IPDF, TDocumentInfo DInfo, const wchar_t* Value);
function pdfGetInDocInfo(const IPDF: PPDF; DInfo: TDocumentInfo; var Value: PWideChar): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle with an open import source. |
DInfo | TDocumentInfo | Field to read. diCompany/diCustom always return empty (no standard /Info key). |
Value | PWideChar* | Receives the value. |
Return value — String length, or 0 if unset, no import source is open, or DInfo has no standard key.
Memory & buffers — Value points at an engine-owned buffer valid until the next call.
See also — pdfGetInDocInfoEx
C# (P/Invoke)
public static extern int pdfGetInDocInfo(IntPtr IPDF, TDocumentInfo DInfo, ref IntPtr Value);
Getters
pdfGetInDocInfo
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.