98 lines
3.3 KiB
HTML
98 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Simple pdf.js page viewer</title>
|
|
<link rel="stylesheet" href="viewer.css"/>
|
|
|
|
<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>
|
|
<script type="text/javascript" src="../metrics.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"/>
|
|
|
|
<span>/</span>
|
|
<span id="numPages">--</span>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<button id="next" title="Zoom Out" onclick="PDFView.zoomOut();">
|
|
<img src="images/zoom-out.svg" align="top" height="32"/>
|
|
</button>
|
|
<button id="next" title="Zoom In" onclick="PDFView.zoomIn();">
|
|
<img src="images/zoom-in.svg" align="top" height="32"/>
|
|
</button>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<select id="scaleSelect" onchange="PDFView.parseScale(this.value);">
|
|
<option id="customScaleOption" value="custom"></option>
|
|
<option value="0.5">50%</option>
|
|
<option value="0.75">75%</option>
|
|
<option value="1">100%</option>
|
|
<option value="1.25">125%</option>
|
|
<option value="1.5" selected="selected">150%</option>
|
|
<option value="2">200%</option>
|
|
<option id="pageWidthOption" value="page-width">Page Width</option>
|
|
<option id="pageFitOption" value="page-fit">Page Fit</option>
|
|
</select>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<button id="print" onclick="window.print();">
|
|
<img src="images/document-print.svg" align="top" height="32"/>
|
|
Print
|
|
</button>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<input id="fileInput" type="file"/>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<span id="info">--</span>
|
|
</div>
|
|
|
|
<div id="sidebar">
|
|
<div id="sidebarBox">
|
|
<div id="sidebarScrollView">
|
|
<div id="sidebarView"></div>
|
|
</div>
|
|
<div id="outlineScrollView" style="display:none">
|
|
<div id="outlineView"></div>
|
|
</div>
|
|
<div id="sidebarControls">
|
|
<button id="thumbsSwitch" title="Show Thumbnails" onclick="PDFView.switchSidebarView('thumbs')" data-selected>
|
|
<img src="images/nav-thumbs.svg" align="top" height="32" alt="Thumbs" />
|
|
</button>
|
|
<button id="outlineSwitch" title="Show Document Outline" onclick="PDFView.switchSidebarView('outline')" disabled>
|
|
<img src="images/nav-outline.svg" align="top" height="32" alt="Document Outline" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="loading">Loading... 0%</div>
|
|
<div id="viewer"></div>
|
|
</body>
|
|
</html>
|
|
|