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
Post a Comment