BOOL32 __stdcall pdfGetInMetadata(PPDF IPDF, int32_t PageNum, uint8_t* Buffer, uint32_t* BufSize);
function pdfGetInMetadata(const IPDF: PPDF; PageNum: Integer; Buffer: PByte; var BufSize: Cardinal): LongBool; stdcall;
Purpose. Read the currently open import file's XMP metadata — the import-source counterpart of pdfGetMetadata (Document Info, Metadata, and Versioning).
Description. PageNum is accepted by the ABI, but ImportMetadataOut takes no page parameter at all — this always returns the import file's document-level metadata regardless of PageNum's value; there is no page-level metadata readback reachable through this call despite the parameter's presence.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle (with an open import file). |
PageNum | Accepted but not consulted — always returns document-level metadata. |
Buffer, BufSize | Output XMP bytes. |
Return value. True if the import file has metadata; False otherwise.
See also. pdfGetMetadata.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetInMetadata
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.