while IOS has builtin pdf support, android does not. typically you would use a javascript pdf viewer hosted in the webview.
The Webview does not display PDF
iOS is displaying pdf but android WebView does nothing.
I want to open a pdf from a web resource on WebView. But the WebView does not render the pdf. On the other hand the webpages are displayed on WebView without any problem.
Developer technologies .NET .NET MAUI
2 answers
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2024-12-16T17:07:57.91+00:00 -
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
2024-12-18T06:00:04.4433333+00:00 Hello,
As Bruce mentioned, Android's native WebView does not support direct viewing of PDFs. You can refer to the detailed steps in this thread on how to set up Android Webivew to view PDFs.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.