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>
|
2012-01-24 09:50:45 +09:00
|
|
|
<!-- PDFJSSCRIPT_INCLUDE_FIREFOX_EXTENSION -->
|
|
|
|
|
2011-08-24 10:00:12 +09:00
|
|
|
<link rel="stylesheet" href="viewer.css"/>
|
2012-05-01 05:29:05 +09:00
|
|
|
<link rel="resource" type="application/l10n" href="locale.properties"/>
|
2011-10-28 21:32:36 +09:00
|
|
|
|
2012-01-24 09:50:45 +09:00
|
|
|
<script type="text/javascript" src="compatibility.js"></script> <!-- PDFJSSCRIPT_REMOVE_FIREFOX_EXTENSION -->
|
2011-11-02 03:56:34 +09:00
|
|
|
|
2011-10-26 09:22:45 +09:00
|
|
|
<!-- PDFJSSCRIPT_INCLUDE_BUILD -->
|
2012-02-14 09:29:48 +09:00
|
|
|
<script type="text/javascript" src="../src/core.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/util.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-04-10 14:20:57 +09:00
|
|
|
<script type="text/javascript" src="../src/api.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-03-25 03:59:51 +09:00
|
|
|
<script type="text/javascript" src="../src/metadata.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-02-14 09:29:48 +09:00
|
|
|
<script type="text/javascript" src="../src/canvas.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/obj.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/function.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/charsets.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/cidmaps.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/colorspace.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/crypto.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/evaluator.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/fonts.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/glyphlist.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/image.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/metrics.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/parser.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/pattern.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/stream.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/worker.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../external/jpgjs/jpg.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
|
|
|
<script type="text/javascript" src="../src/jpx.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-02-21 03:41:19 +09:00
|
|
|
<script type="text/javascript" src="../src/bidi.js"></script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-02-14 09:29:48 +09:00
|
|
|
<script type="text/javascript">PDFJS.workerSrc = '../src/worker_loader.js';</script> <!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-05-01 05:29:05 +09:00
|
|
|
<script type="text/javascript" src="../external/webL10n/l10n.js"></script><!-- PDFJSSCRIPT_REMOVE_CORE -->
|
2012-02-16 07:55:16 +09:00
|
|
|
<script type="text/javascript" src="debugger.js"></script>
|
2011-06-18 08:20:13 +09:00
|
|
|
<script type="text/javascript" src="viewer.js"></script>
|
2011-12-07 06:52:29 +09:00
|
|
|
</head>
|
2011-05-26 23:02:52 +09:00
|
|
|
|
2011-07-29 02:48:05 +09:00
|
|
|
<body>
|
2011-05-26 23:02:52 +09:00
|
|
|
<div id="controls">
|
2011-10-20 03:14:13 +09:00
|
|
|
<button id="previous" onclick="PDFView.page--;" oncontextmenu="return false;">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/go-up.svg" align="top" height="16"/>
|
2012-05-01 05:29:05 +09:00
|
|
|
<span data-l10n-id="previous_label">Previous</span>
|
2011-07-29 02:48:05 +09:00
|
|
|
</button>
|
|
|
|
|
2011-10-20 03:14:13 +09:00
|
|
|
<button id="next" onclick="PDFView.page++;" oncontextmenu="return false;">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/go-down.svg" align="top" height="16"/>
|
2012-05-01 05:29:05 +09:00
|
|
|
<span data-l10n-id="next_label">Next</span>
|
2011-07-29 02:48:05 +09:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-02 05:52:27 +09:00
|
|
|
<input type="number" id="pageNumber" onchange="PDFView.page = this.value;" value="1" size="4" min="1" />
|
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>
|
|
|
|
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="zoomOut" title="Zoom Out" onclick="PDFView.zoomOut();" oncontextmenu="return false;" data-l10n-id="zoom_out">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/zoom-out.svg" align="top" height="16"/>
|
2011-09-03 23:10:24 +09:00
|
|
|
</button>
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="zoomIn" title="Zoom In" onclick="PDFView.zoomIn();" oncontextmenu="return false;" data-l10n-id="zoom_in">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/zoom-in.svg" align="top" height="16"/>
|
2011-09-03 23:10:24 +09:00
|
|
|
</button>
|
|
|
|
|
2011-09-05 23:07:18 +09:00
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-20 03:14:13 +09:00
|
|
|
<select id="scaleSelect" onchange="PDFView.parseScale(this.value);" oncontextmenu="return false;">
|
2011-09-03 10:16:52 +09: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>
|
2011-12-23 02:24:13 +09:00
|
|
|
<option value="1.5">150%</option>
|
2011-09-03 10:16:52 +09:00
|
|
|
<option value="2">200%</option>
|
2012-05-01 05:29:05 +09:00
|
|
|
<option id="pageWidthOption" value="page-width" data-l10n-id="page_scale_width">Page Width</option>
|
|
|
|
<option id="pageFitOption" value="page-fit" data-l10n-id="page_scale_fit">Page Fit</option>
|
|
|
|
<option id="pageAutoOption" value="auto" data-l10n-id="page_scale_auto" selected="selected">Auto</option>
|
2011-07-29 02:48:05 +09:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-20 03:14:13 +09:00
|
|
|
<button id="print" onclick="window.print();" oncontextmenu="return false;">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/document-print.svg" align="top" height="16"/>
|
2012-05-01 05:29:05 +09:00
|
|
|
<span data-l10n-id="print_label">Print</span>
|
2011-07-30 01:17:04 +09:00
|
|
|
</button>
|
|
|
|
|
2011-10-20 03:14:13 +09:00
|
|
|
<button id="download" title="Download" onclick="PDFView.download();" oncontextmenu="return false;">
|
2011-11-01 07:23:03 +09:00
|
|
|
<img src="images/download.svg" align="top" height="16"/>
|
2012-05-01 05:29:05 +09:00
|
|
|
<span data-l10n-id="download_label">Download</span>
|
2011-10-20 03:14:13 +09:00
|
|
|
</button>
|
|
|
|
|
2011-07-30 01:17:04 +09:00
|
|
|
<div class="separator"></div>
|
|
|
|
|
2011-10-20 03:14:13 +09:00
|
|
|
<input id="fileInput" type="file" oncontextmenu="return false;"/>
|
2011-07-29 02:48:05 +09:00
|
|
|
|
2012-01-25 08:13:50 +09:00
|
|
|
<div id="fileInputSeperator" class="separator"></div>
|
2011-07-29 02:48:05 +09:00
|
|
|
|
2012-05-01 05:29:05 +09:00
|
|
|
<a href="#" id="viewBookmark" data-l10n-id="bookmark" title="Bookmark (or copy) current location">
|
|
|
|
<img src="images/bookmark.svg" data-l10n-id="bookmark_icon" alt="Bookmark" align="top" height="16"/>
|
2011-10-20 03:14:13 +09:00
|
|
|
</a>
|
|
|
|
|
2011-05-26 23:02:52 +09:00
|
|
|
</div>
|
2011-11-29 09:55:09 +09:00
|
|
|
<div id="errorWrapper" hidden='true'>
|
|
|
|
<div id="errorMessageLeft">
|
|
|
|
<span id="errorMessage"></span>
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="errorShowMore" onclick="" oncontextmenu="return false;" data-l10n-id="error_more_info">
|
2011-11-29 09:55:09 +09:00
|
|
|
More Information
|
|
|
|
</button>
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="errorShowLess" onclick="" oncontextmenu="return false;" data-l10n-id="error_less_info" hidden='true'>
|
2011-11-29 09:55:09 +09:00
|
|
|
Less Information
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div id="errorMessageRight">
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="errorClose" oncontextmenu="return false;" data-l10n-id="error_close">
|
2011-12-02 02:11:33 +09:00
|
|
|
Close
|
2011-11-29 09:55:09 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="clearBoth"></div>
|
2012-01-05 07:43:17 +09:00
|
|
|
<textarea id="errorMoreInfo" hidden='true' readonly="readonly"></textarea>
|
2011-11-29 09:55:09 +09:00
|
|
|
</div>
|
2011-05-26 23:02:52 +09:00
|
|
|
|
2011-07-29 02:48:05 +09:00
|
|
|
<div id="sidebar">
|
|
|
|
<div id="sidebarBox">
|
2012-02-11 04:21:55 +09:00
|
|
|
<div id="pinIcon" onClick="PDFView.pinSidebar()"></div>
|
2011-07-29 02:48:05 +09:00
|
|
|
<div id="sidebarScrollView">
|
|
|
|
<div id="sidebarView"></div>
|
|
|
|
</div>
|
2011-10-20 03:14:13 +09:00
|
|
|
<div id="outlineScrollView" hidden='true'>
|
2011-08-22 11:05:10 +09:00
|
|
|
<div id="outlineView"></div>
|
|
|
|
</div>
|
|
|
|
<div id="sidebarControls">
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="thumbsSwitch" title="Show Thumbnails" onclick="PDFView.switchSidebarView('thumbs')" data-l10n-id="thumbs" data-selected>
|
|
|
|
<img src="images/nav-thumbs.svg" align="top" height="16" alt="Thumbs" data-l10n-id="thumbs_icon"/>
|
2011-08-22 11:05:10 +09:00
|
|
|
</button>
|
2012-05-01 05:29:05 +09:00
|
|
|
<button id="outlineSwitch" title="Show Document Outline" onclick="PDFView.switchSidebarView('outline')" data-l10n-id="outline" disabled>
|
|
|
|
<img src="images/nav-outline.svg" align="top" height="16" alt="Document Outline" data-l10n-id="outline_icon"/>
|
2011-08-22 11:05:10 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
2012-02-07 17:30:47 +09:00
|
|
|
</div>
|
2011-05-26 23:02:52 +09:00
|
|
|
</div>
|
2011-10-28 21:32:36 +09:00
|
|
|
|
2012-03-22 07:36:10 +09:00
|
|
|
<div id="loadingBox">
|
2012-05-01 05:29:05 +09:00
|
|
|
<div id="loading" data-l10n-id="loading" data-l10n-args='{"percent": 0}'>Loading... 0%</div>
|
2012-03-27 16:13:32 +09:00
|
|
|
<div id="loadingBar"><div class="progress"></div></div>
|
2012-03-22 07:36:10 +09:00
|
|
|
</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>
|