- Posts: 100
- Thank you received: 0
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
Does Radaee provide encription
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
IP: 192.168.0.71
11 years 5 months ago - 11 years 5 months ago #8012
by asliyanage
Replied by asliyanage on topic Does Radaee provide encription
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?
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?
Last edit: 11 years 5 months ago by Docrishav.
IP: 192.168.0.71
11 years 5 months ago #8013
by radaee
Replied by radaee on topic Does Radaee provide encription
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.
seems something not initialized, for View.
com.radaee.reader.PDFReader.computeScroll(PDFReader.java:912)
line 912 of PDFReader.java has NullPointer exception.
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 5 months ago #8014
by asliyanage
Replied by asliyanage on topic Does Radaee provide encription
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.
encrypt document and save as the document to another file.
this method need premium license.
IP: 192.168.0.158
11 years 5 months ago #8043
by nermeen
As mentioned above, yes premium license is required.
Replied by nermeen on topic Does Radaee provide encription
radaee wrote: 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.
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 5 months ago #8044
by asliyanage
Replied by asliyanage on topic Does Radaee provide encription
I am willing to use standard license.Is there anyway to encrypt t he pdf file using for standard license?
IP: 192.168.0.71
11 years 5 months ago #8046
by radaee
Replied by radaee on topic Does Radaee provide encription
another choice is: using PDFAESStream.
sample codes placed in ReaderActivity.java line 58
see commented code.
sample codes placed in ReaderActivity.java line 58
see commented code.
Time to create page: 0.465 seconds