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

TOPIC:

Does Radaee provide encription 9 years 4 months ago #8012

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
I change the code as you mentioned.Changed code is below.
byte file_id[] = new byte[16];
m_doc.Close();
int ret = m_doc.Open(path, null);
m_doc.EncryptAs(newFile, "12345", "12345", -1, 0, file_id );
Log.e("SAMEERA", "EncryptAs " + newFile);
if (ret == 0) {
m_reader.setVisibility(View.VISIBLE);
m_reader.PDFOpen(m_doc, false, this);
mContentView.removeAllViews();
mContentView.addView(m_layout);
}

then i print the out put boolean from EncryptAs method.everytime it gives false.where is the error?

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

Last edit: by Docrishav.

Does Radaee provide encription 9 years 4 months ago #8013

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this is not issue from native.
seems something not initialized, for View.
com.radaee.reader.PDFReader.computeScroll(PDFReader.java:912)
line 912 of PDFReader.java has NullPointer exception.

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

Does Radaee provide encription 9 years 4 months ago #8014

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
everytime it gives me false from EncryptAs method.i don't know why?do i need premium lisense as mentioned in Document ?

encrypt document and save as the document to another file.
this method need premium license.

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

Does Radaee provide encription 9 years 4 months ago #8043

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87

first you can use this to encrypt PDF file:
byte file_id[] = new byte[16];
...

NOTICE:this need premium license.


As mentioned above, yes premium license is required.

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

Does Radaee provide encription 9 years 4 months ago #8044

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
I am willing to use standard license.Is there anyway to encrypt t he pdf file using for standard license?

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

Does Radaee provide encription 9 years 4 months ago #8046

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
another choice is: using PDFAESStream.
sample codes placed in ReaderActivity.java line 58
see commented code.

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

Powered by Kunena Forum