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 AES stream

More
IP: 192.168.0.71 12 years 1 month ago #6712 by Gracanin
Replied by Gracanin on topic PDF AES stream
I tried the PDFAESEncOld from PDFEncAct and that works, makes an encrypted file that is opened with the reader. I do not see how PDFAESStream class works, especially the ImportFromFile and ExportToFile, these methods seem unfinished.

Can you, please, post the code that takes a PDF file, saves an encrypted version to disk and then opens the encrypted file and renders it? All this using code in version 2.9.10

1. open file1.pdf
2. save encrypted file1.pdf to file1encrypted.pdf
3. open file1encrypted.pdf and render it on screen.
More
IP: 192.168.0.71 12 years 1 month ago #6718 by radaee
Replied by radaee on topic PDF AES stream
codes are commented in ReaderActivity.java
like:
Code:
byte key[] = new byte[16]; stream.open("/sdcard/ttt.pdf", key); stream.ImportFromFile("/sdcard/test.pdf"); stream.ExportToFile("/sdcard/test1.pdf"); stream.close(); { //int ret = doc.OpenStream(stream, null); int ret = doc.Open("/sdcard/test1.pdf", null);
Time to create page: 0.343 seconds
Powered by Kunena Forum