Display PDF within web browser
I use Google Docs embeddable PDF viewer. The docs don't have to be uploaded to Google Docs, but they do have to be available online.
<iframe src="http://docs.google.com/gview?url=http://path.com/to/your/pdf.pdf&embedded=true"
style="width:600px; height:500px;" frameborder="0"></iframe>
Recommended way to embed PDF in HTML?
Probably the best approach is to use the PDF.JS library. It's a pure HTML5/JavaScript renderer for PDF documents without any third-party plugins.
Online demo:
https://mozilla.github.io/pdf.js/web/viewer.html
GitHub:
https://github.com/mozilla/pdf.js
Open a PDF in browser 2 page up view
What you are trying to do involves browsers from multiple vendors and multiple versions of it, there is no concise and succinct answer to your question.
When trying to present a PDF document to a user via the web browser, in a particular fashion, you could use the following Parameters for Opening PDF Files
However, the parameter that you are looking for "Book View", i.e, Two Pages in a single view is not supported as per the official documentation.
Chrome and Acrobat are no longer compatible.
Change in support for Acrobat and Reader plug-ins in modern web browsers
For, other browsers that still support PDF plugins, use the following guidlines to Display PDF in browser
(This is mostly on the user side)
Open PDF in new browser full window
<a href="#" onclick="window.open('MyPDF.pdf', '_blank', 'fullscreen=yes'); return false;">MyPDF</a>
The above link will open the PDF in full screen mode, that's the best you can achieve.
Related Topics
Should Ol/Ul Be Inside ≪P≫ or Outside
Make Flex Items Take Content Width, Not Width of Parent Container
How to Apply a Style to an Embedded Svg
Why Does Styling the Background of the Body Element Affect the Entire Screen
Why Does Position:Relative; Appear to Change the Z-Index
How to Force a Web Browser Not to Cache Images
Can an Option in a Select Tag Carry Multiple Values
How to Avoid Joining All Text from Nodes When Scraping
Why Can't I Do ≪Img Src="C:/Localfile.Jpg"≫
How to Add a Browser Tab Icon (Favicon) For a Website
Reading HTML Content from a Uiwebview
How to Force a Line Break in a Long Word in a Div
How to Deal With Page Breaks When Printing a Large HTML Table
What's the Proper Value For a Checked Attribute of an HTML Checkbox
Difference Between ≪Input Type='Button' /≫ and ≪Input Type='Submit' /≫
What's the Difference Between Disabled="Disabled" and Readonly="Readonly" for HTML Form Input Fields