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

More
IP: 192.168.0.71 11 years 5 months ago - 11 years 5 months ago #8012 by asliyanage
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?
Last edit: 11 years 5 months ago by Docrishav.
More
IP: 192.168.0.71 11 years 5 months ago #8013 by radaee
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.
More
IP: 192.168.0.71 11 years 5 months ago #8014 by asliyanage
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.
More
IP: 192.168.0.158 11 years 5 months ago #8043 by nermeen

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.
More
IP: 192.168.0.71 11 years 5 months ago #8044 by asliyanage
I am willing to use standard license.Is there anyway to encrypt t he pdf file using for standard license?
More
IP: 192.168.0.71 11 years 5 months ago #8046 by radaee
another choice is: using PDFAESStream.
sample codes placed in ReaderActivity.java line 58
see commented code.
Time to create page: 0.465 seconds
Powered by Kunena Forum