Add multiple file attachments in PDF using Aspose.PDF for .NET

hi,

How can we add attachments to a PDF using Aspose API? If possible, please share a sample Java progam.

Thanking You

Rajesh

I am sorry, i found resources from documentation site.
Working with Attachments

Thanks,

Rajesh

Hi Rajesh,


Thanks for your feedback. It is good to know you have managed to find required information.

Please feel free to contact us for any further assistance for assistance. We will be more than happy to extend our support.

Best Regards,

hi Tilal,

Thank you for response, what method of FileSpecifications will allow us to add multiple documents as attachments to a PDF?

Basically, how can i add multiple attachments to a PDF?

regards,

Rajesh

Hi Rajesh,


You can add as many documents as attachment to PDF file but for each new document, you need to create a new instance of com.aspose.pdf.FileSpecification object and add it to EmbeddedFiles collection of Document object using getEmbeddedFiles().add(…) method.