Whoops! There was a ...previewing this pdf document android -


my application has list of pdf inside listview. pdf viewed inside application using webview open google docs sheet. works fine first opened pdf, when going , opening pdf got error "whoops! there problem previewing document". there kind of limitation on opening pdf using google sheet. if so, how can full rights open pdf want. can please. here code.

    //---you need prevent webview     // launching browser when url     // redirection occurs---     wv.setwebviewclient(new callback());     wv.getsettings().setjavascriptenabled(true);     wv.getsettings().setjavascriptenabled(true);     wv.getsettings().setallowfileaccess(true);      wv.loadurl("https://docs.google.com/gview?embedded=true&url=" + sharepreferencecontroller.getprefsavepdfinfo()); 

try increasing version/compatibility of pdf. worked me.

edit: believe more of size issue. when changed version (from acrobat 9.0 10.0) had optimized pdf making smaller file. larger files of same version still not work.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -