AddAttachment Method
Adds Filename as an attachment to the PDF.
Syntax
Remarks
The file specified by Filename will be added to the PDF as an attachment.
When this method returns, the file information will be added to the Attachments collection.
After adding an attachment, call the Save method to create a new PDF with the embedded file.
Simple Example:
pdfxml.InputFile = "C:\input.pdf"; pdfxml.Load(); pdfxml.AddAttachment("C:\attachmentfile.txt"); pdfxml.OutputFile = "C:\output.pdf"; pdfxml.Save();