e625af3fef
"text/javascript" is not a correct MIME type (the correct one is "application/javascript") but it's not even needed; all browsers default to the correct type and treat it as executable JS when type is ommited. Since not all browsers recognize the "application/javascript" MIME type the only way to both stay compliant and to support all popular browsers is to omit the type. It's also shorter this way.
14 lines
331 B
HTML
14 lines
331 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Text-only PDF.js example</title>
|
|
<script src="../../build/generic/build/pdf.js"></script>
|
|
<script src="pdf2svg.js"></script>
|
|
</head>
|
|
<body>
|
|
<p>Text-only PDF.js example</p>
|
|
<div id="pageContainer" style="display: inline-block; border: solid 1px black;">
|
|
</div>
|
|
</body>
|
|
</html>
|