PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable Funktion

Unit: PDFium
Meldet, ob die geladene pdfium.dll den Export FPDFAttachment_GetAFRelationship bereitstellt

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameter

Keine

Rückgabewert

Boolean

Beschreibung

AttachmentRelationshipFeaturesAvailable lädt bei Bedarf das ausgewählte PDFium-Modul und gibt True zurück, wenn der optionale Einstiegspunkt FPDFAttachment_GetAFRelationship exportiert wird

Ist der Export vorhanden, melden AttachmentRelationship, das Feld Relationship des von ReadAttachmentMetadata gelieferten TPdfAttachmentMetadata und das von TryGetAnnotationFileAttachment gefüllte Feld Relationship den /AFRelationship-Namen der Dateispezifikation (ISO 32000-2, Table 43)

Ohne den Export liefern all diese Werte einen leeren String – genau wie bei einer Dateispezifikation ohne /AFRelationship-Eintrag

Hinweise

Beispiel

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

Siehe auch

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable