SetEmbeddedFilePDFDeclarations

Compliance

Description

Writes XMP pdfd:declarations conformance claims into the /Metadata stream attached to an embedded file stream (/EF /UF or /EF /F) per ISO 14289-2:2024 §7.2.2

Syntax

Delphi

Function TPDFlib.SetEmbeddedFilePDFDeclarations(FileIndex: Integer; Const URIs, ClaimBys, ClaimDates: WideString): Integer;

Parameters

FileIndex1-based embedded file index
URIsSemicolon-separated pdfd:conformsTo URIs (pass an empty string to clear declarations on that stream)
ClaimBysOptional semicolon-separated pdfd:claimBy values matched positionally to URIs
ClaimDatesOptional semicolon-separated pdfd:claimDate ISO 8601 timestamps matched positionally to URIs

Return values

0FileIndex is out of range, or declarations were cleared
NNumber of declaration entries written to the embedded file stream metadata

See also

GetEmbeddedFilePDFDeclarations, SetPDFDeclarations