Display pdf in webview of android

前端 未结 1 993
名媛妹妹
名媛妹妹 2021-01-25 01:50

I\'m displaying a pdf in webview using help of google docs, with this url, https://docs.google.com/gview?url=+location of pdf. It\'s breaking the pages

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-25 02:21

    You can append &overridemobile=true to the url.

    Example:

    https://docs.google.com/gview?url=www.example.com/example.pdf&overridemobile=true

    This will override the mobile viewer and take you to the desktop version, which has a single flow.

    0 讨论(0)
提交回复
热议问题