Embed Attachment to PDF

Contents
[ ]

In Excel, you can insert an OLE object with source data (embedded-attachments-example.xlsx). Double‑click the OLE object, and the embedded file will be opened.

Generally, when converting to PDF, the OLE object is rendered as an icon or a thumbnail without the OLE object’s source data. By using the option PdfSaveOptions.EmbedAttachments, you can embed the OLE object’s source data as an attachment in the PDF. You can double‑click the icon or the thumbnail in the PDF to open the source file of the OLE object.

embedded-attachment.png