Only encrypt attachments

Is it possible to encrypt only file-attachments, while leaving the rest of the document unprotected?

This previous topic implies that it is possible, but I couldn’t find the way to do it looking at the API documentation.

@vp11

Thanks for contacting support.

Please note that the document shared in the referred topic, was not generated by the Aspose.Pdf API, and provided to the product team for investigation.

Currently you can secure the entire PDF document by using Document.Encrypt() method. However, we have logged an investigation ticket as PDFNET-43942 in our issue tracking system, for you requirement. Our product team will further investigate the feasibility of the feature and we will let you know once we receive some significant updates in this regard. Please be patient and spare us little time.

We are sorry for the inconvenience.