PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable function

Unit: PDFium
Reports whether the loaded pdfium.dll exports FPDFAttachment_GetAFRelationship

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

None

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable loads the selected PDFium module when necessary and returns True when the optional FPDFAttachment_GetAFRelationship entry point is exported

When the export is present, AttachmentRelationship, the Relationship field of TPdfAttachmentMetadata returned by ReadAttachmentMetadata, and the Relationship field filled by TryGetAnnotationFileAttachment report the /AFRelationship name of the file specification (ISO 32000-2 Table 43)

Without the export those values read as an empty string, exactly as they do for a file specification that carries no /AFRelationship entry

Remarks

Example

if AttachmentRelationshipFeaturesAvailable and (Pdf.AttachmentRelationship[0] = 'Source') then
  ShowMessage('First attachment is the source document');

See Also

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable