PDFium Delphi Component Docs

AddAnnotationFileAttachment metode

Komponen: TPdf  ·  Unit: PDFium
Melampirkan file yang disematkan ke anotasi yang sudah ada dan mengisi kontennya dalam satu panggilan

Syntax

function AddAnnotationFileAttachment(AnnotIndex: Integer; const Name: WString; const FileData: TBytes): Boolean;

AnnotIndexInteger. Zero-based index of the annotation on the current page, typically one of subtype anFileAttachment.
NameWString. File name recorded for the attachment, as a viewer would show it.
FileDataTBytes. Bytes of the embedded file. An empty array creates the attachment entry with no contents.
ResultBoolean. True when both the attachment and its contents were written.

Description

Melampirkan file ke satu anotasi, yang merupakan penanda paperclip atau pushpin yang ditampilkan anotasi FileAttachment. Lampiran tingkat dokumen terpisah dan diproses melalui CreateAttachment

Jika berhasil halaman ditandai sebagai dimodifikasi, sehingga SaveAs berikutnya membawa lampiran ke dalam file

Hasil False berarti tidak ada yang dilampirkan: entah anotasi tidak dapat dibuka atau build PDFium tidak mengekspor lampiran anotasi

See Also

CreateAttachment, Attachment, CreateAnnotation, AttachmentName