Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

PDF Encrypted with AES256 rendering blank pages

More
IP: 79.115.243.156 2 years 10 months ago #15795 by razvar
Hi,

I'm using Radaee PDF SDK v3.54 for Android (premium license) and  pdf documents encrypted with a owner password and AES 256 encryption doesn't render, all pages are just blank (using Aspose sdk to encrypt the pdf) . If encrypting the document with AES128 it works as expected, document will render properly.  I'm opening the document from a stream and m_doc.OpenStream returns 0 after passing the correct password (nothing wrong) but renders empty pages when the pdf is AES256 encrypted (also, m_reader.PDFGetDoc().IsEncrypted(); returns true). Does Radaee PDF SDK supports AES256 pdf encrypted documents? Or maybe I'm doing something wrong, but if I would do something wrong, AES128 encrypted pdf will not work either, right?


I'm using the same version of SDK for iOS as well and pdfs with AES256 or 128 encryption are working as expected, no blank pages on pdf with aes 256 encryption (pdf loaded from stream as well).


Thank you for your time.

 
More
IP: 188.9.140.254 2 years 10 months ago #15796 by support
The version 3.54 is quite old.
I suggest you to check the last version of our demo project.
Then, you shall update .so files from last SDK to your application not changing the java code.
More
IP: 79.115.243.156 2 years 10 months ago #15797 by razvar
Thanks a lot! I've updated the so files from last SDK (from ViewLib\src\main\jniLibs and reinstalled the app in emulator) , getVersion() returns 2022-07-26 (not sure if I'm on the right track). But I'm still not able to render pdfs with AES256, same issue, blank pages. Any other pointers? Thanks
More
IP: 188.9.140.254 2 years 10 months ago #15798 by support
May you provide one of your PDF, please?
More
IP: 79.115.243.156 2 years 10 months ago #15799 by razvar
Sure, see attached.


Password for 256 one: cf97e8f8c9a8ace5853d2717a286820a9f384df4318d000eb25c23cf9a4de6811

Password for 128 one: e9421aa90636dfd5527f3854976d2a2a2f646eb5ff9098fff7eca6500e11b4b011


128 one works, just attached for reference.


Thanks.
More
IP: 79.115.243.156 2 years 10 months ago - 2 years 10 months ago #15800 by razvar
Hi,

I've got an update on my issue, this issue happens only on documents that have the pdf format version other than PDF 2.0 (attached above are pdf's v1.4 but I've tested with 1.7 as well, and same issue). IF, and ONLY if I convert the pdf to 2.0, all will work as expected. Still, your iOS SDK will be able to open 1.7 with AES256. Android one should as well, so that it's consistent (some other sdks that I'm using are able to process pdf v1.4 or 1.7 with AES256 as well; including Acrobat itself).

Thanks.
Last edit: 2 years 10 months ago by razvar.
Time to create page: 0.385 seconds
Powered by Kunena Forum