PDFium Delphi Component Docs

Função AttachmentRelationshipFeaturesAvailable

Unidade: PDFium
Indica 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 devolve True quando o ponto de entrada opcional FPDFAttachment_GetAFRelationship está exportado

Quando a exportação está presente, AttachmentRelationship, o campo Relationship de TPdfAttachmentMetadata devolvido por ReadAttachmentMetadata e o campo Relationship preenchido por TryGetAnnotationFileAttachment reportam o nome /AFRelationship da file specification (ISO 32000-2 Table 43)

Sem a exportação, esses valores leem-se como uma cadeia vazia, exatamente como acontece com uma file specification que não traz nenhuma 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