2011-07-02 06:59:20 +09:00
|
|
|
<!DOCTYPE html>
|
2011-05-05 09:32:59 +09:00
|
|
|
<html>
|
2011-05-26 23:02:52 +09:00
|
|
|
<head>
|
|
|
|
<title>Simple pdf.js page viewer</title>
|
2011-08-24 10:00:12 +09:00
|
|
|
<link rel="stylesheet" href="viewer.css"/>
|
2011-05-26 23:02:52 +09:00
|
|
|
|
2011-07-06 08:17:08 +09:00
|
|
|
<script type="text/javascript" src="compatibility.js"></script>
|
2011-06-18 08:20:13 +09:00
|
|
|
<script type="text/javascript" src="viewer.js"></script>
|
2011-07-06 05:51:02 +09:00
|
|
|
<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>
|
2011-09-09 08:35:37 +09:00
|
|
|
<script type="text/javascript" src="../metrics.js"></script>
|
2011-05-26 23:02:52 +09:00
|
|
|
</head>
|
|
|
|
|
2011-07-29 02:48:05 +09:00
|
|
|
<body>
|
2011-05-26 23:02:52 +09:00
|
|
|
<div id="controls">
|
2011-07-29 02:48:05 +09:00
|
|
|
<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>
|
|
|
|
|
2011-08-24 10:00:12 +09:00
|
|
|
<input type="text" id="pageNumber" onchange="PDFView.page = this.value;" value="1" size="4"/>
|
2011-07-29 02:48:05 +09:00
|
|
|
|
|
|
|
<span>/</span>
|
2011-06-14 02:16:03 +09:00
|
|
|
<span id="numPages">--</span>
|
2011-07-29 02:48:05 +09:00
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-09-03 23:10:24 +09:00
|
|
|
<button id="next" title="Zoom Out" onclick="PDFView.zoomOut();">
|
2011-09-05 23:07:18 +09:00
|
|
|
<img src="images/zoom-out.svg" align="top" height="32"/>
|
2011-09-03 23:10:24 +09:00
|
|
|
</button>
|
|
|
|
<button id="next" title="Zoom In" onclick="PDFView.zoomIn();">
|
2011-09-05 23:07:18 +09:00
|
|
|
<img src="images/zoom-in.svg" align="top" height="32"/>
|
2011-09-03 23:10:24 +09:00
|
|
|
</button>
|
|
|
|
|
2011-09-05 23:07:18 +09:00
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-09-03 10:16:52 +09:00
|
|
|
<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>
|
2011-07-29 02:48:05 +09:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-07-30 01:17:04 +09:00
|
|
|
<button id="print" onclick="window.print();">
|
|
|
|
<img src="images/document-print.svg" align="top" height="32"/>
|
|
|
|
Print
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-08-24 10:00:12 +09:00
|
|
|
<input id="fileInput" type="file"/>
|
2011-07-29 02:48:05 +09:00
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
|
|
|
<span id="info">--</span>
|
2011-05-26 23:02:52 +09:00
|
|
|
</div>
|
|
|
|
|
2011-07-29 02:48:05 +09:00
|
|
|
<div id="sidebar">
|
|
|
|
<div id="sidebarBox">
|
|
|
|
<div id="sidebarScrollView">
|
|
|
|
<div id="sidebarView"></div>
|
|
|
|
</div>
|
2011-08-22 11:05:10 +09:00
|
|
|
<div id="outlineScrollView" style="display:none">
|
|
|
|
<div id="outlineView"></div>
|
|
|
|
</div>
|
|
|
|
<div id="sidebarControls">
|
2011-08-23 08:55:49 +09:00
|
|
|
<button id="thumbsSwitch" title="Show Thumbnails" onclick="PDFView.switchSidebarView('thumbs')" data-selected>
|
|
|
|
<img src="images/nav-thumbs.svg" align="top" height="32" alt="Thumbs" />
|
2011-08-22 11:05:10 +09:00
|
|
|
</button>
|
2011-08-23 08:55:49 +09:00
|
|
|
<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" />
|
2011-08-22 11:05:10 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
2011-07-29 02:48:05 +09:00
|
|
|
</div>
|
2011-05-26 23:02:52 +09:00
|
|
|
</div>
|
2011-09-21 13:49:09 +09:00
|
|
|
|
2011-09-21 21:25:29 +09:00
|
|
|
<div id="loading">Loading... 0%</div>
|
2011-07-29 02:48:05 +09:00
|
|
|
<div id="viewer"></div>
|
2011-05-26 23:02:52 +09:00
|
|
|
</body>
|
2011-05-05 09:32:59 +09:00
|
|
|
</html>
|
2011-05-26 23:02:52 +09:00
|
|
|
|