I'm using PDF.js to preview a PDF doc in my page.
I't works perfectly without doctype on top of the page. But when I add it, the PDF viewer stops working.
My doctype:
<!DOCTYPE HTML>
Where I call the viewer:
echo '<div id="pdfViewer">';
include('pdf_viewer.php');
echo '</div>';
CSS style of the pdfViewer division:
#pdfViewer {
margin: 10px;
}
How can I add the doctype declaration and still keep my viewer working?