2011-07-01 16:59:20 -05:00
|
|
|
<!DOCTYPE html>
|
2011-05-04 19:32:59 -05:00
|
|
|
<html>
|
2011-05-26 16:02:52 +02:00
|
|
|
<head>
|
|
|
|
<title>Simple pdf.js page viewer</title>
|
2011-08-23 22:00:12 -03:00
|
|
|
<link rel="stylesheet" href="viewer.css"/>
|
2011-10-28 14:32:36 +02:00
|
|
|
|
2011-10-29 16:00:13 -05:00
|
|
|
<script type="text/javascript" src="compatibility.js"></script>
|
2011-11-01 19:56:34 +01:00
|
|
|
|
2011-10-25 17:22:45 -07:00
|
|
|
<!-- PDFJSSCRIPT_INCLUDE_BUILD -->
|
|
|
|
<script type="text/javascript" src="../src/core.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/util.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/canvas.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/obj.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/function.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/charsets.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/cidmaps.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/colorspace.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/crypto.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/evaluator.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/fonts.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/glyphlist.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/image.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/metrics.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/parser.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/pattern.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/stream.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
|
|
|
<script type="text/javascript" src="../src/worker.js"></script> <!-- PDFJSSCRIPT_REMOVE -->
|
2011-05-26 16:02:52 +02:00
|
|
|
|
2011-11-01 22:23:16 +01:00
|
|
|
<script type="text/javascript">PDFJS.workerSrc = '../src/worker_loader.js';</script> <!-- PDFJSSCRIPT_REMOVE -->
|
2011-11-01 19:32:20 +01:00
|
|
|
|
2011-06-17 16:20:13 -07:00
|
|
|
<script type="text/javascript" src="viewer.js"></script>
|
2011-05-26 16:02:52 +02:00
|
|
|
</head>
|
|
|
|
|
2011-07-28 19:48:05 +02:00
|
|
|
<body>
|
2011-05-26 16:02:52 +02:00
|
|
|
<div id="controls">
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="previous" onclick="PDFView.page--;" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/go-up.svg" align="top" height="16"/>
|
2011-07-28 19:48:05 +02:00
|
|
|
Previous
|
|
|
|
</button>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="next" onclick="PDFView.page++;" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/go-down.svg" align="top" height="16"/>
|
2011-07-28 19:48:05 +02:00
|
|
|
Next
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-01 15:52:27 -05:00
|
|
|
<input type="number" id="pageNumber" onchange="PDFView.page = this.value;" value="1" size="4" min="1" />
|
2011-07-28 19:48:05 +02:00
|
|
|
|
|
|
|
<span>/</span>
|
2011-06-13 19:16:03 +02:00
|
|
|
<span id="numPages">--</span>
|
2011-07-28 19:48:05 +02:00
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="zoomOut" title="Zoom Out" onclick="PDFView.zoomOut();" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/zoom-out.svg" align="top" height="16"/>
|
2011-09-03 09:10:24 -05:00
|
|
|
</button>
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="zoomIn" title="Zoom In" onclick="PDFView.zoomIn();" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/zoom-in.svg" align="top" height="16"/>
|
2011-09-03 09:10:24 -05:00
|
|
|
</button>
|
|
|
|
|
2011-09-05 09:07:18 -05:00
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<select id="scaleSelect" onchange="PDFView.parseScale(this.value);" oncontextmenu="return false;">
|
2011-09-02 20:16:52 -05:00
|
|
|
<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-28 19:48:05 +02:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="print" onclick="window.print();" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/document-print.svg" align="top" height="16"/>
|
2011-07-29 18:17:04 +02:00
|
|
|
Print
|
|
|
|
</button>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<button id="download" title="Download" onclick="PDFView.download();" oncontextmenu="return false;">
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/download.svg" align="top" height="16"/>
|
2011-10-19 11:14:13 -07:00
|
|
|
Download
|
|
|
|
</button>
|
|
|
|
|
2011-07-29 18:17:04 +02:00
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-19 11:14:13 -07:00
|
|
|
<input id="fileInput" type="file" oncontextmenu="return false;"/>
|
2011-07-28 19:48:05 +02:00
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-31 18:23:03 -04:00
|
|
|
<a href="#" id="viewBookmark" title="Bookmark (or copy) current location">
|
|
|
|
<img src="images/bookmark.svg" alt="Bookmark" align="top" height="16"/>
|
2011-10-19 11:14:13 -07:00
|
|
|
</a>
|
|
|
|
|
2011-07-28 19:48:05 +02:00
|
|
|
<span id="info">--</span>
|
2011-05-26 16:02:52 +02:00
|
|
|
</div>
|
|
|
|
|
2011-07-28 19:48:05 +02:00
|
|
|
<div id="sidebar">
|
|
|
|
<div id="sidebarBox">
|
|
|
|
<div id="sidebarScrollView">
|
|
|
|
<div id="sidebarView"></div>
|
|
|
|
</div>
|
2011-10-19 11:14:13 -07:00
|
|
|
<div id="outlineScrollView" hidden='true'>
|
2011-08-21 21:05:10 -05:00
|
|
|
<div id="outlineView"></div>
|
|
|
|
</div>
|
|
|
|
<div id="sidebarControls">
|
2011-08-22 18:55:49 -05:00
|
|
|
<button id="thumbsSwitch" title="Show Thumbnails" onclick="PDFView.switchSidebarView('thumbs')" data-selected>
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/nav-thumbs.svg" align="top" height="16" alt="Thumbs" />
|
2011-08-21 21:05:10 -05:00
|
|
|
</button>
|
2011-08-22 18:55:49 -05:00
|
|
|
<button id="outlineSwitch" title="Show Document Outline" onclick="PDFView.switchSidebarView('outline')" disabled>
|
2011-10-31 18:23:03 -04:00
|
|
|
<img src="images/nav-outline.svg" align="top" height="16" alt="Document Outline" />
|
2011-08-21 21:05:10 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
2011-07-28 19:48:05 +02:00
|
|
|
</div>
|
2011-05-26 16:02:52 +02:00
|
|
|
</div>
|
2011-10-28 14:32:36 +02:00
|
|
|
|
2011-09-21 19:25:29 +07:00
|
|
|
<div id="loading">Loading... 0%</div>
|
2011-07-28 19:48:05 +02:00
|
|
|
<div id="viewer"></div>
|
2011-05-26 16:02:52 +02:00
|
|
|
</body>
|
2011-05-04 19:32:59 -05:00
|
|
|
</html>
|
2011-05-26 16:02:52 +02:00
|
|
|
|