Attachments

Attachments

Forum member · May 2, 2006
Is there a way to add File 'Attachments' to a PDF I create so that they display under the Attachments tab in Adobe Reader 7.0?

Re: Attachments

Support · May 2, 2006
Hello, Current version of our product does not have the ability to add attachments to PDF files. Ability to add attachments to PDF documents is a feature we will be adding to a minor release very soon. Thanks, ceTe Software Support Team

Re: Attachments

Forum member · Aug 5, 2014
I cannot find anything in the documentation. Is this feature implemented?

Re: Attachments

Support · Aug 5, 2014
Hello, Support for adding files as attachments to the PDF is added to version 5 and later DynamicPDF for .NET product. You can use the EmbeddedFile class to create an object by loading the file which you would like to add as an attachment to the PDF and then add it to the Document object. Please refer to the documentation on EmbeddedFile class here . Below is the code sample for it. Document document = new Document(); Page page = new Page(); document.Pages.Add(page); TextArea area = new TextArea("This is to test", 100, 100, 100, 400); page.Elements.Add(area); EmbeddedFile attachement1 = new EmbeddedFile(@"C:\Temp\MyDocument.pdf"); document.EmbeddedFiles.Add(attachement1); document.Draw(@"C:\Temp\Output.pdf"); Feel free to download fully functional evaluation edition of latest version of DynamicPDF for .NET product from our website here . Thanks, ceTe Software Support Team.