pdf.js/web/viewer.html
2011-07-28 19:48:05 +02:00

66 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Simple pdf.js page viewer</title>
<link rel="stylesheet" href="viewer.css"></link>
<script type="text/javascript" src="compatibility.js"></script>
<script type="text/javascript" src="viewer.js"></script>
<script type="text/javascript" src="../pdf.js"></script>
<script type="text/javascript" src="../fonts.js"></script>
<script type="text/javascript" src="../crypto.js"></script>
<script type="text/javascript" src="../glyphlist.js"></script>
</head>
<body>
<div id="controls">
<button id="previous" onclick="PDFView.page--;">
<img src="images/go-up.svg" align="top" height="32"/>
Previous
</button>
<button id="next" onclick="PDFView.page++;">
<img src="images/go-down.svg" align="top" height="32"/>
Next
</button>
<div class="separator"></div>
<input type="text" id="pageNumber" onchange="PDFView.page = this.value;" value="1" size="4"></input>
<span>/</span>
<span id="numPages">--</span>
<div class="separator"></div>
<select id="scaleSelect" onchange="PDFView.scale = parseInt(this.value);">
<option value="50">50%</option>
<option value="75">75%</option>
<option value="100">100%</option>
<option value="125">125%</option>
<option value="150" selected="selected"><p>150%</p></option>
<option value="200">200%</option>
</select>
<div class="separator"></div>
<input id="fileInput" type="file"></input>
<div class="separator"></div>
<span id="info">--</span>
</div>
<div id="sidebar">
<div id="sidebarBox">
<div id="sidebarScrollView">
<div id="sidebarView"></div>
</div>
</div>
</div>
<div id="viewer"></div>
</body>
</html>