Is there any way to embed a pdf file into an html5 page? Is there any way to embed a pdf file into an html5 page? ios ios

Is there any way to embed a pdf file into an html5 page?


I don't think this is possible without using Flash. Instead, you might want to convert the PDF to a different format (HTML for example) that can be rendered by the browser. There are tools that can do this from the command line, so making a script to do it on your site won't be too difficult.


You can use the embed tag like this:

<embed src="/path/to/your/file.pdf" />


Maybe you could convert the pdf to images on the server and display the images instead of the original pdf. As far as i know, Apache pdfbox can be used to do such a convert.