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
| FileIndex | 1-based embedded file index |
|---|---|
| URIs | Semicolon-separated pdfd:conformsTo URIs (pass an empty string to clear declarations on that stream) |
| ClaimBys | Optional semicolon-separated pdfd:claimBy values matched positionally to URIs |
| ClaimDates | Optional semicolon-separated pdfd:claimDate ISO 8601 timestamps matched positionally to URIs |
Return values
| 0 | FileIndex is out of range, or declarations were cleared |
|---|---|
| N | Number of declaration entries written to the embedded file stream metadata |