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

What's the most efficient way to open an Uri?

More
IP: 85.76.5.49 6 years 10 months ago #14363 by ville
Hi, and thank you for the example!

I have an input stream obtained from a Uri like this:
Code:
final InputStream inputStream = this.application.getContentResolver().openInputStream(uri);

btu doc.Open does not seem to accept Uri nor InputStreams. What's the most efficient way to open an Uri?
More
IP: 111.196.244.118 6 years 10 months ago #14368 by radaee
2 ways you can open from url.
1. download whole PDF file to storage, and then open file from storage.
2. anwser like: www.radaeepdf.com/forum/Android-developm...ages-to-images#14367
More
IP: 212.149.240.8 6 years 9 months ago #14381 by ville
Hi,

for future forum travellers: one can use PDFMemStream like this
Code:
PDFMemStream stream = new PDFMemStream(bytes); int result = doc.OpenStream(stream, null);

Stream to byte buffer is plain ol java, google/stackoverflow that.
Time to create page: 0.390 seconds
Powered by Kunena Forum