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

support inputstream

More
11 years 3 weeks ago #9745 by leo415
support inputstream was created by leo415
Just want to know if radaeepdf support use inputstream instead of filepath.
If support, could you give me a demo project file ?
More
11 years 3 weeks ago #9746 by Davide
Replied by Davide on topic support inputstream
Hi,
yes, I suggest you to look at PDFViewAct in the demo project, module RDPDFReader.
In the onCreate method you will find some example of how to use m_doc.OpenStream method.
For more info check this:
More
10 years 10 months ago #10003 by leo415
Replied by leo415 on topic support inputstream
I use the below code snippet. It used file path to render pdf.

m_doc = new Document();
m_stream = new PDFFileStream();
boolean ok = m_stream.open(path);
if( !ok ) return -1;
int ret = m_doc.OpenStream(m_stream, null);


My problem is I cloud not use inputStream or byteArray to initialized PDFStream, and their is another function read(byte[]) looks like read byte array, but it give me a nullpointer exception because the m_impl is not initialized. I don't want to use file path to render pdf, it has performance and memory issues to me. Could you give a solution, Thanks! Waiting for your reply.
More
10 years 10 months ago #10019 by Davide
Replied by Davide on topic support inputstream
Hi,
I have taken this code from the example project:
Code:
m_http_stream = new PDFHttpStream(); m_http_stream.open(pdf_http); m_doc = new Document(); int ret = m_doc.OpenStream(m_http_stream, pdf_pswd);

It doesn't use any path, pdf_http it's an url.
Time to create page: 0.378 seconds
Powered by Kunena Forum