3

I am showing an PDF form URl via Google doc in my web view.

( webview.loadUrl("https://docs.google.com/gview?embedded=true&url="+ UrlPdf))

It works but I want to use warp content functionality so that text of pdf should auto fit to the screen width and exceeded text move to the new line so I can scroll it.

I searched many SDKs to do this but didn't get success.

Below I attached an screen which shows my requirement.

enter image description here

1
  • PDF normally is not a format which can be Easily reflowed, it is explicitly made to display documents in the same way everywhere.
    – mkl
    Commented Sep 5, 2013 at 5:17

1 Answer 1

1
** Try This**

WebSettings settings = mWebView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setBuiltInZoomControls(true); Use for Zooming Purpose
       settings.setLoadWithOverviewMode(true);  Use for Zooming Purpose
       settings.setUseWideViewPort(true);      Use for Zooming Purpose
        mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.