I've been trying to create a pdfview.php page that would hold separate .pdf files to view. Currently, I'm trying to just make sure that a pdf shows up properly at least. I'm using PDFObject for this purpose
Here's the code:
<script type="text/javascript">
window.onload = function () {
var success = new PDFObject({ url: "/uploads/noor2.pdf" }).embed("pdf");
};
</script>
and for the place holder is just a div
<div id="pdf" class=" well col-sm-8 col-md-8 col-lg-8 col-xl-8">
<p> pdf review should be here! </p>
</div>