TPDFlibAttachment

Data Types

Description

TPDFlibAttachment is a unified record structure that describes an embedded file attachment, whether it originates from a document-level name tree or a page-level file attachment annotation.

Syntax

Delphi

type TPDFlibAttachment = record
    Source: TPDFlibAttachmentSource;
    Index: Integer;
    Page: Integer;
    FileName: WideString;
    MIMEType: WideString;
    Description: WideString;
    Size: Int64;
  end;

Fields

SourceL'origine dell'allegato specificata da TPDFlibAttachmentSource
IndexL'indice con base 1 all'interno della propria raccolta sorgente (ad esempio all'interno dell'elenco dei file incorporati o dell'elenco delle annotazioni di pagina)
PageIl numero di pagina con base 1 where the attachment resides if Source is asAnnotAttachment; otherwise 0 if it is document-wide (asEmbeddedFile).
FileNameIl nome o l'identificatore del percorso Unicode del file allegato
MIMETypeIl sottotipo di contenuto MIME dello stream incorporato (ad esempio image/jpeg o application/xml)
DescriptionUn commento testuale descrittivo per l'allegato
SizeThe uncompressed stream file size in bytes; returns 0 if size metadata is absent

See also

TPDFlibAttachmentSource, EnumAttachments, SaveAllAttachments