PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable function

Unit: PDFium
Indicates whether the loaded pdfium.dll provides the FPDFAttachment_GetAFRelationship export

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

None

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable loads the selected PDFium module when needed and returns True if the optional FPDFAttachment_GetAFRelationship entry point is present among the module's exports

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

Should the export be missing, those values come back as an empty string, precisely 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