PDFium Component Docs

AttachmentRelationshipFeaturesAvailable Funkcja

Unit: PDFium
Raportuje, czy wczytana biblioteka pdfium.dll eksportuje FPDFAttachment_GetAFRelationship

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

Brak

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable w razie potrzeby wczytuje wybraną bibliotekę PDFium i zwraca True, gdy opcjonalny punkt wejścia FPDFAttachment_GetAFRelationship jest eksportowany

Gdy eksport jest dostępny, AttachmentRelationship, pole Relationship w TPdfAttachmentMetadata zwracanym przez ReadAttachmentMetadata oraz pole Relationship wypełniane przez TryGetAnnotationFileAttachment raportują nazwę /AFRelationship ze specyfikacji pliku (ISO 32000-2 Table 43)

Bez tego eksportu wszystkie te wartości czytane są jako pusty string — dokładnie tak samo, jak dla specyfikacji pliku bez wpisu /AFRelationship

Remarks

Example

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

See Also

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable