API referenceImport & 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.

C
BOOL32 __stdcall pdfImportDocInfo(PPDF IPDF);
Delphi
function pdfImportDocInfo(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';

Return valueTRUE when an import source is open (even if the source has no info keys); FALSE otherwise.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category

Import

Exported names

pdfImportDocInfo

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.