PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable função

Unidade: PDFium
Informa se o pdfium.dll carregado exporta FPDFAttachment_GetAFRelationship

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

Nenhum

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable carrega o módulo PDFium selecionado quando necessário e retorna True quando o ponto de entrada opcional FPDFAttachment_GetAFRelationship é exportado

Com a exportação presente, AttachmentRelationship, o campo Relationship de TPdfAttachmentMetadata retornado por ReadAttachmentMetadata e o campo Relationship preenchido por TryGetAnnotationFileAttachment relatam o nome /AFRelationship da especificação de arquivo (ISO 32000-2 Table 43)

Sem a exportação, esses valores são lidos como string vazia, exatamente como acontece com uma especificação de arquivo que não traz entrada /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