API reference › Import & Output APIs
pdfImportDocInfo
Copy the source's document-info keys (Author, Title, Subject,
Purpose — Copy the source's document-info keys (Author, Title, Subject, Keywords, Creator, …) into the destination document.
Description — Iterates the source /Info dictionary and applies every recognised key (ordinals 0–11 of the TDocumentInfo family) via the same path as pdfSetDocInfo. Existing destination values for those keys are overwritten; keys absent in the source are left untouched.
BOOL32 __stdcall pdfImportDocInfo(PPDF IPDF);
function pdfImportDocInfo(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';
Return value — TRUE when an import source is open (even if the source has no info keys); FALSE otherwise.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Import
pdfImportDocInfo
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.