The core part of my application is load PDF online and user have access to 
download it as per their given rights.

The problem I am facing is that I want to load pdf online. After many 
research I have found that,

There are likely two ways to show pdf online in android:

1) In Web view by loading simple hosted URL

2) By google doc.

But in our case, if we use way (1), the mobile web view does not redirect 
hosted url of PDF. And if we use way (2), then there are certain 
limitations of the google docs regarding the file sizes. (Small pdf it will 
load like 5 to 10 with size of 1MB)

But after loading PDF with the size of 2 or 3 MB it's also giving me error 
as "No PREVIEW AVAILABLE" and its continuously giving me this error opening 
different urls.

So it seems there is still no easy solution for viewing a pdf from url 
(online without downloading pdf).

The other way to open pdf online is that we can open it in any other third 
party applications like browser, adobe pdf reader or any kind of pdf viewer 
application available in the device.

Cons: If we open pdf in browser then it will get downloaded automatically 
and if we open it in any third party application then they have options to 
download the pdf.

Please give me some solution to read the PDF online.

And if there are any paid pdf SDK availble which gives functionality of 
loading pdf online from URL, then please provide information of that too.

Stack Overflow link 
<http://stackoverflow.com/questions/41157823/android-online-pdf-load-preview-not-available-error-via-google-doc>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a617e3be-3847-4308-9bff-999c04089d02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to