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

TOPIC:

A 4 years 4 months ago #14818

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
H

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

Last edit: by AABBDD.

AES Encryption 4 years 4 months ago #14819

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
Dear user:
PDFAESStream can only open the file that encrypted by PDFAESStream itself. it encrypt each 4096 as block, so support fast random access.

PDFAESStream to create AES encrypted file:
PDFAESStream stream = new PDFAESStream;
stream.Open("file path", key);
stream.Write(pdf_data_from_not_encrypted_whole_file);
stream.Close();
PDFAESStream to open PDF file:
PDFAESStream stream = new PDFAESStream;
stream.Open("file path", key);
Document doc = new Document;
doc.OpenStream(stream);
//do something...
doc.Close();
stream.Close();

PDFAESStream is not standard encrypt method for PDF file.
PDFAESStream just process PDF file as binary data.

the standard encrypt for PDF file is to invoke Document.EncryptAs();
Document.EncryptAs can generate password protected PDF file.
The following user(s) said Thank You: AABBDD

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

Last edit: by radaee.

A 4 years 4 months ago #14821

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
s

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

Last edit: by AABBDD.

AES Encryption 4 years 4 months ago #14822

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
EncryptAs shall not change page content.
can you attach both origin PDF file and encrypted PDF file?
The following user(s) said Thank You: AABBDD

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

AES Encryption 4 years 4 months ago #14823

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
one more thing:
do not forgot to update to last version, which we fixed AES decryption few days ago.
you shall only need replace nativer libraries, java code no effect on your issue.
The following user(s) said Thank You: AABBDD

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

Last edit: by radaee.

A 4 years 4 months ago #14824

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
j

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

Last edit: by AABBDD.
  • Page:
  • 1
Powered by Kunena Forum