PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable Funkcja

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

Składnia

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parametry

Brak

Wartość zwracana

Boolean

Opis

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

Uwagi

Przykład

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

Zobacz też

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable