After some testing with Red Gate Memory Profiler the implications of using the new aspose.pdf.facades to set FileSecurity are huge !! MemoryStreams dont dispose correct.
Hi Paal,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for sharing the sample application.
I am able to reproduce the time consumption issue and memory usage issue with the latest version of Aspose.Pdf for .NET as mentioned by you. However, the file size issue does not exists when we use the licensed version and also it takes around 19 Seconds (5 seconds less then un-licensed version) to complete the process (which is still quite a lot). I have registered the issue regarding time consumption and memory usage in our issue tracking system with issue id: PDFNEWNET-33127. For issue regarding file size, please use a valid license and for testing purpose, you may acquire a 30 days temporary license. Please use the below link to acquire a temporary license (choose “Get a Temporary License” option).
http://www.aspose.com/purchase/default.aspx
Sorry for the inconvenience,