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
| Source | L'origine dell'allegato specificata da TPDFlibAttachmentSource |
|---|---|
| Index | L'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) |
| Page | Il numero di pagina con base 1 where the attachment resides if Source is asAnnotAttachment; otherwise 0 if it is document-wide (asEmbeddedFile). |
| FileName | Il nome o l'identificatore del percorso Unicode del file allegato |
| MIMEType | Il sottotipo di contenuto MIME dello stream incorporato (ad esempio image/jpeg o application/xml) |
| Description | Un commento testuale descrittivo per l'allegato |
| Size | The uncompressed stream file size in bytes; returns 0 if size metadata is absent |
See also
TPDFlibAttachmentSource, EnumAttachments, SaveAllAttachments