Open
Description
Describe the bug
Its not possible to view a raw pdf in mobile like in desktop.
Possible solution
Create an iframe that has as a source the google pdf visualizer url with the pdf link as url param. This link to serve the pdf itself doesn't exist yet. Also, this link strategy doesn't work with the firebase download url.
- Use example:
<iframe
src="https://docs.google.com/viewer?url=http://www.africau.edu/images/default/sample.pdf">
</iframe>
Useful links
- About Google doc viewer:
- https://stackoverflow.com/questions/7437602/how-to-display-a-pdf-via-android-web-browser-without-downloading-first
- https://stackoverflow.com/questions/50855747/how-to-add-pdf-viewer-to-website-for-mobile-browsers
- Explanation on why you can't visualize: