Attach files to pdf

How to attach files in the "Attachment section"? In acrobat, I could simply do that by clicking "Document" and then "Attach a file...".

I have tried some examples from Aspose site by using the "Attachment" object in C#, however, it would just create an attachment file in the body only.


Thank you for considering Aspose.

Currently you can use PdfContentEditor.CreateFileAttachment method in Aspose.Pdf.Kit. That method needs to specify area and page. If you don’t want the attachment be displayed on the page, you can set the area to be outdise the page. In the future version, we will support a simple interface in whcih only attachment file name is needed.