Attach a file to a file-attachment annotation
Source:R/api_completion.R
pdf_annot_add_file_attachment.RdWraps FPDFAnnot_AddFileAttachment. Adds a new file attachment to
the document (returning the pdfium_attachment handle) and links
it to annot. Use pdf_attachment_set_data() (or the related
attachment-authoring setters) to populate the file bytes.
See also
pdf_attachment_new() for the doc-level version.