We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

GetBuffer() vs Save() with regards to Security

More of an FYI/Bug Report

When creating a PDF Document, and applying Security settings to it (ie: a password), using the GetBuffer() method returns the byte[] without applying the Security settings whereas using the Save() method with a MemoryStream, and then taking the byte[] out of the Stream does.

I haven’t found any discussion of this in my limited searching but if it isn’t documented, it probably should be.

Thanks!

Hi there,


Thanks for your inquiry. We will appreciate it if you please share your sample code here, we will look into it and will guide you accordingly.

Furthermore, please note when we are creating a new PDF document, it is created dynamically by API and in order to get real PDF document we need to render its programming/dynamic model. We can render PDF document model by calling save() method or processParagraph(). So might be you are getting issue due to the reason, however we will guide you exactly after checking your sample code.

We are sorry for the inconvenience caused.

Best Regards,