PDF Viewer support in mobile browser (iPhone & Android)
If embedding isn't important to you you could just link to the PDF on a seperate page.
Safari (and UIWebViews) supports the rendering of PDFs, im not a 100% sure about Android but I suspect its a similar story.
embed tag not displaying pdf file on mobile browsers
You need to use object
, not embed
<object data="filename.pdf" type="application/pdf" width="100%" height="100%">
<p>Your web browser doesn't have a PDF plugin.
Instead you can <a href="filename.pdf">click here to
download the PDF file.</a></p>
</object>
How to support PDF viewing for all mobile browser?
The best way is just too just add a link to the abc.pdf
it will open on a new tab.
This would work best for mobile browser rather than embeding or implementing plugins.
<a href="abc.pdf" target="_blank">ABC PDF file</a>
embed PDF not working in Android Chrome - plugin not supported
You can use Google Drive PDF viewer with Object data
ex.
<object data="https://drive.google.com/viewerng/viewer?embedded=true&url=http://health.ntuh.gov.tw/health/NTUH_e_Net/NTUH_e_Net_no91/%E7%99%8C%E7%97%87%E7%AF%A9%E6%AA%A2.pdf" type="application/pdf">
<embed src="https://drive.google.com/viewerng/viewer?embedded=true&url=http://health.ntuh.gov.tw/health/NTUH_e_Net/NTUH_e_Net_no91/%E7%99%8C%E7%97%87%E7%AF%A9%E6%AA%A2.pdf" type='application/pdf'>
</object>
Related Topics
Change Arrow Colors in Bootstraps Carousel
Fixed Position Relative to Parent Container
Nested Ngfor Looping Over an Array of Objects
Loading Images from External Folder to Component Angular 2
How to Modify the Primeng P-Calendar Style
Angular: *Ngif Tag on Input Element Causes It to Be Undefined. Cannot Read Value from Input Field
How to Use a :Before or :After Pseudo-Element on an Input Field
How to Keep Two Side-By-Side Div Elements the Same Height
Fill the Remaining Height or Width in a Flex Container
Vertically Align an Image Inside a Div With Responsive Height
Html:How to Make a Curve Like This Using HTML & CSS Using Border or Box
Angular (Typescript): How to Set Option of Selected to 'Selected' If Two-Way Binded
How to Disable an Input Dynamically With Angular 7
How to Make HTML Table Cell Editable
Why Am I Seeing a 404 (Not Found) Error Failed to Load Favicon.Ico When Not Using This
Change Background Color of Iframe Issue