PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable funktion

Enhed: PDFium
Rapporterer, om den indlæste pdfium.dll eksporterer FPDFAttachment_GetAFRelationship

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

Ingen

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable indlæser det valgte PDFium-modul, når det er nødvendigt, og returnerer True, når det valgfrie entry point FPDFAttachment_GetAFRelationship eksporteres

Når eksporten er til stede, rapporterer AttachmentRelationship, Relationship-feltet i TPdfAttachmentMetadata, som ReadAttachmentMetadata returnerer, og Relationship-feltet, som TryGetAnnotationFileAttachment udfylder, fil-specifikationens /AFRelationship-navn (ISO 32000-2 Table 43)

Uden eksporten læses disse værdier som en tom streng, præcis som ved en fil-specifikation uden en /AFRelationship-post

Remarks

Example

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

See Also

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable