Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15795

  • razvar
  • razvar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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.

 

Please Log in or Create an account to join the conversation.

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15796

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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.
The following user(s) said Thank You: razvar

Please Log in or Create an account to join the conversation.

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15797

  • razvar
  • razvar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15798

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
May you provide one of your PDF, please?

Please Log in or Create an account to join the conversation.

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15799

  • razvar
  • razvar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Sure, see attached.


Password for 256 one: cf97e8f8c9a8ace5853d2717a286820a9f384df4318d000eb25c23cf9a4de6811

Password for 128 one: e9421aa90636dfd5527f3854976d2a2a2f646eb5ff9098fff7eca6500e11b4b011


128 one works, just attached for reference.


Thanks.
Attachments:

Please Log in or Create an account to join the conversation.

PDF Encrypted with AES256 rendering blank pages 1 year 1 month ago #15800

  • razvar
  • razvar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Last edit: by razvar.
  • Page:
  • 1
  • 2
Powered by Kunena Forum