I used a google document to display a pdf file in a web browser. It used to work well. Now it does not give a preview. Most of the time it gives a blank screen without previewing, but sometime it opens a pdf. However, I noticed that if the PDF size is small, it works fine, but if the size is slightly larger with 10-100 or more pages, a preview is displayed.
link:
https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf
the code:
WebBrowser view = new WebBrowser(); view.setURL("https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf");
google-docs google-docs-api codenameone
beck
source share