31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<title>Simple pdf.js page viewer</title>
|
|
<link rel="stylesheet" href="test.css"></link>
|
|
|
|
<script type="text/javascript" src="pdf.js"></script>
|
|
<script type="text/javascript" src="test.js"></script>
|
|
<script type="text/javascript" src="cffStandardStrings.js"></script>
|
|
<script type="text/javascript" src="t2data.js"></script>
|
|
<script type="text/javascript" src="PDFFontUtils.js"></script>
|
|
<script type="text/javascript" src="PDFFont.js"></script>
|
|
</head>
|
|
|
|
<body onload="load();">
|
|
<div id="controls">
|
|
<button onclick="prevPage();">Previous</button>
|
|
<button onclick="nextPage();">Next</button>
|
|
<input type="text" id="pageNumber" onchange="gotoPage(this.value);"
|
|
value="1" size="4"></input>
|
|
<span id="info"></span>
|
|
</div>
|
|
|
|
<div id="viewer">
|
|
<!-- Canvas dimensions must be specified in CSS pixels. CSS pixels
|
|
are always 96 dpi. These dimensions are 8.5x11in at 96dpi. -->
|
|
<canvas id="canvas" width="816" height="1056"></canvas>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|