android - Print pdf from its server URL -
i have pdf url , show in webview using below code:
webview webview = (webview) findviewbyid(r.id.wb); webview.getsettings().setjavascriptenabled(true); string pdf = "http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf"; webview.loadurl("http://docs.google.com/gview?embedded=true&url=" + pdf);
i need print pdf without downloading pdf. in this document tells how print custom content rendering on pdf canvas , sending created pdf document printing. has no information how send webview pdf printing? please has idea how handle this. in advance
maybe try capture picture webview pdf , print picture. use webview.capturepicture()
. here original documentation http://developer.android.com/reference/android/webkit/webview.html#capturepicture
Comments
Post a Comment