npm-viewerjs
Version:
Document viewer component for PDF and ODF documents. Done with just HTML5, CSS3, and JavaScript. Powered by pdf.js and WebODF.
122 lines (110 loc) • 5.78 kB
HTML
<html dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!--
Copyright (C) 2012-2015 KO GmbH <copyright@kogmbh.com>
This file is part of ViewerJS.
ViewerJS is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License (GNU AGPL)
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
ViewerJS is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with ViewerJS. If not, see <http://www.gnu.org/licenses/>.
@source: http://viewerjs.org/
@source: http://github.com/kogmbh/ViewerJS
This file is a derivative from a part of Mozilla's PDF.js project. The
original license header follows.
Copyright 2012 Mozilla Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<title>Document Viewer</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<link href="video-js/video-js.css" rel="stylesheet">
<script src="video-js/video.js"></script>
<script src="video-js/settings.js"></script>
<link href="viewer.css" rel="stylesheet">
</head>
<body>
<div id="viewer">
<div id="titlebar" class="no-print">
<div id="documentName" style="display:none;"></div>
<div id="titlebarRight">
<button id="print" class="toolbarButton print" title="Print"></button>
<button id="presentation" class="toolbarButton presentation" title="Presentation"></button>
<button id="fullscreen" class="toolbarButton fullscreen" title="Fullscreen"></button>
<button id="download" class="toolbarButton download" title="Download"></button>
</div>
</div>
<div id="toolbarContainer" class="no-print">
<div id="toolbar">
<div id="toolbarLeft">
<div id="navButtons" class="splitToolbarButton">
<button id="previous" class="toolbarButton pageUp" title="Previous Page"></button>
<div class="splitToolbarButtonSeparator"></div>
<button id="next" class="toolbarButton pageDown" title="Next Page"></button>
</div>
<label id="pageNumberLabel" class="toolbarLabel" for="pageNumber">Page:</label>
<input type="number" id="pageNumber" class="toolbarField pageNumber"/>
<span id="numPages" class="toolbarLabel"></span>
</div>
<div id="toolbarMiddleContainer" class="outerCenter">
<div id="toolbarMiddle" class="innerCenter">
<div id='zoomButtons' class="splitToolbarButton">
<button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out"></button>
<div class="splitToolbarButtonSeparator"></div>
<button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In"></button>
</div>
<span id="scaleSelectContainer" class="dropdownToolbarButton">
<select id="scaleSelect" title="Zoom" oncontextmenu="return false;">
<option id="pageAutoOption" value="auto" selected>Automatic</option>
<option id="pageActualOption" value="page-actual">Actual Size</option>
<option id="pageWidthOption" value="page-width">Full Width</option>
<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">150%</option>
<option value="2">200%</option>
</select>
</span>
<div id="sliderContainer">
<div id="slider"></div>
</div>
</div>
</div>
<div id="toolbarRight">
</div>
</div>
</div>
<div id="canvasContainer">
<div id="loading-document"></div>
<div id="canvas"></div>
</div>
<div id="overlayNavigator" class="no-print">
<div id="previousPage"></div>
<div id="nextPage"></div>
</div>
<div id="overlayCloseButton" class="no-print">
✖
</div>
<div id="dialogOverlay" class="no-print"></div>
<div id="blanked" class="no-print"></div>
</div>
<script src="viewer.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>