PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable función

Unidad: PDFium
Indica si el pdfium.dll cargado exporta FPDFAttachment_GetAFRelationship

Sintaxis

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parámetros

Ninguno

Valor devuelto

Boolean

Descripción

AttachmentRelationshipFeaturesAvailable carga el módulo PDFium seleccionado cuando es necesario y devuelve True cuando el punto de entrada opcional FPDFAttachment_GetAFRelationship está exportado

Cuando la exportación está presente, AttachmentRelationship, el campo Relationship de TPdfAttachmentMetadata que devuelve ReadAttachmentMetadata y el campo Relationship que rellena TryGetAnnotationFileAttachment informan del nombre /AFRelationship de la especificación de archivo (ISO 32000-2 Table 43)

Sin la exportación, esos valores se leen como una cadena vacía, exactamente igual que en una especificación de archivo que no lleva entrada /AFRelationship

Observaciones

Ejemplo

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

Véase también

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable