function AddAnnotationFileAttachment(AnnotIndex: Integer; const Name: WString; const FileData: TBytes): Boolean;
| AnnotIndex | Integer. Zero-based index of the annotation on the current page, typically one of subtype anFileAttachment. |
| Name | WString. File name recorded for the attachment, as a viewer would show it. |
| FileData | TBytes. Bytes of the embedded file. An empty array creates the attachment entry with no contents. |
| Result | Boolean. True when both the attachment and its contents were written. |
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