| 1 |
<!DOCTYPE html> |
| 2 |
<!-- |
| 3 |
Copyright 2012 Mozilla Foundation |
| 4 |
|
| 5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
you may not use this file except in compliance with the License. |
| 7 |
You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
|
| 17 |
Adobe CMap resources are covered by their own copyright but the same license: |
| 18 |
|
| 19 |
Copyright 1990-2015 Adobe Systems Incorporated. |
| 20 |
|
| 21 |
See https://github.com/adobe-type-tools/cmap-resources |
| 22 |
--> |
| 23 |
<html dir="ltr" mozdisallowselectionprint moznomarginboxes> |
| 24 |
<head> |
| 25 |
<meta charset="utf-8"> |
| 26 |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| 27 |
<meta name="google" content="notranslate"> |
| 28 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 29 |
<title>PDF.js viewer</title> |
| 30 |
|
| 31 |
|
| 32 |
<link rel="stylesheet" href="viewer.css"> |
| 33 |
|
| 34 |
<script src="compatibility.js"></script> |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
<!-- This snippet is used in production (included from viewer.html) --> |
| 39 |
<link rel="resource" type="application/l10n" href="locale/locale.properties"> |
| 40 |
<script src="l10n.js"></script> |
| 41 |
<script src="../build/pdf.js"></script> |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
<script src="debugger.js"></script> |
| 46 |
<script src="viewer.js"></script> |
| 47 |
|
| 48 |
</head> |
| 49 |
|
| 50 |
<body tabindex="1" class="loadingInProgress"> |
| 51 |
<div id="outerContainer"> |
| 52 |
|
| 53 |
<div id="sidebarContainer"> |
| 54 |
<div id="toolbarSidebar"> |
| 55 |
<div class="splitToolbarButton toggled"> |
| 56 |
<button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs"> |
| 57 |
<span data-l10n-id="thumbs_label">Thumbnails</span> |
| 58 |
</button> |
| 59 |
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline"> |
| 60 |
<span data-l10n-id="outline_label">Document Outline</span> |
| 61 |
</button> |
| 62 |
<button id="viewAttachments" class="toolbarButton group" title="Show Attachments" tabindex="4" data-l10n-id="attachments"> |
| 63 |
<span data-l10n-id="attachments_label">Attachments</span> |
| 64 |
</button> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
<div id="sidebarContent"> |
| 68 |
<div id="thumbnailView"> |
| 69 |
</div> |
| 70 |
<div id="outlineView" class="hidden"> |
| 71 |
</div> |
| 72 |
<div id="attachmentsView" class="hidden"> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
</div> <!-- sidebarContainer --> |
| 76 |
|
| 77 |
<div id="mainContainer"> |
| 78 |
<div class="findbar hidden doorHanger hiddenSmallView" id="findbar"> |
| 79 |
<label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label> |
| 80 |
<input id="findInput" class="toolbarField" tabindex="91"> |
| 81 |
<div class="splitToolbarButton"> |
| 82 |
<button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="92" data-l10n-id="find_previous"> |
| 83 |
<span data-l10n-id="find_previous_label">Previous</span> |
| 84 |
</button> |
| 85 |
<div class="splitToolbarButtonSeparator"></div> |
| 86 |
<button class="toolbarButton findNext" title="" id="findNext" tabindex="93" data-l10n-id="find_next"> |
| 87 |
<span data-l10n-id="find_next_label">Next</span> |
| 88 |
</button> |
| 89 |
</div> |
| 90 |
<input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94"> |
| 91 |
<label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight all</label> |
| 92 |
<input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95"> |
| 93 |
<label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match case</label> |
| 94 |
<span id="findResultsCount" class="toolbarLabel hidden"></span> |
| 95 |
<span id="findMsg" class="toolbarLabel"></span> |
| 96 |
</div> <!-- findbar --> |
| 97 |
|
| 98 |
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight"> |
| 99 |
<div id="secondaryToolbarButtonContainer"> |
| 100 |
<button id="secondaryPresentationMode" class="secondaryToolbarButton presentationMode visibleLargeView" title="Switch to Presentation Mode" tabindex="51" data-l10n-id="presentation_mode"> |
| 101 |
<span data-l10n-id="presentation_mode_label">Presentation Mode</span> |
| 102 |
</button> |
| 103 |
|
| 104 |
<button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="52" data-l10n-id="open_file"> |
| 105 |
<span data-l10n-id="open_file_label">Open</span> |
| 106 |
</button> |
| 107 |
|
| 108 |
<button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="53" data-l10n-id="print"> |
| 109 |
<span data-l10n-id="print_label">Print</span> |
| 110 |
</button> |
| 111 |
|
| 112 |
<button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="54" data-l10n-id="download"> |
| 113 |
<span data-l10n-id="download_label">Download</span> |
| 114 |
</button> |
| 115 |
|
| 116 |
<a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark"> |
| 117 |
<span data-l10n-id="bookmark_label">Current View</span> |
| 118 |
</a> |
| 119 |
|
| 120 |
<div class="horizontalToolbarSeparator visibleLargeView"></div> |
| 121 |
|
| 122 |
<button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="56" data-l10n-id="first_page"> |
| 123 |
<span data-l10n-id="first_page_label">Go to First Page</span> |
| 124 |
</button> |
| 125 |
<button id="lastPage" class="secondaryToolbarButton lastPage" title="Go to Last Page" tabindex="57" data-l10n-id="last_page"> |
| 126 |
<span data-l10n-id="last_page_label">Go to Last Page</span> |
| 127 |
</button> |
| 128 |
|
| 129 |
<div class="horizontalToolbarSeparator"></div> |
| 130 |
|
| 131 |
<button id="pageRotateCw" class="secondaryToolbarButton rotateCw" title="Rotate Clockwise" tabindex="58" data-l10n-id="page_rotate_cw"> |
| 132 |
<span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span> |
| 133 |
</button> |
| 134 |
<button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="59" data-l10n-id="page_rotate_ccw"> |
| 135 |
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span> |
| 136 |
</button> |
| 137 |
|
| 138 |
<div class="horizontalToolbarSeparator"></div> |
| 139 |
|
| 140 |
<button id="toggleHandTool" class="secondaryToolbarButton handTool" title="Enable hand tool" tabindex="60" data-l10n-id="hand_tool_enable"> |
| 141 |
<span data-l10n-id="hand_tool_enable_label">Enable hand tool</span> |
| 142 |
</button> |
| 143 |
|
| 144 |
<div class="horizontalToolbarSeparator"></div> |
| 145 |
|
| 146 |
<button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="61" data-l10n-id="document_properties"> |
| 147 |
<span data-l10n-id="document_properties_label">Document Properties…</span> |
| 148 |
</button> |
| 149 |
</div> |
| 150 |
</div> <!-- secondaryToolbar --> |
| 151 |
|
| 152 |
<div class="toolbar"> |
| 153 |
<div id="toolbarContainer"> |
| 154 |
<div id="toolbarViewer"> |
| 155 |
<div id="toolbarViewerLeft"> |
| 156 |
<button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar"> |
| 157 |
<span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span> |
| 158 |
</button> |
| 159 |
<div class="toolbarButtonSpacer"></div> |
| 160 |
<button id="viewFind" class="toolbarButton group hiddenSmallView" title="Find in Document" tabindex="12" data-l10n-id="findbar"> |
| 161 |
<span data-l10n-id="findbar_label">Find</span> |
| 162 |
</button> |
| 163 |
<div class="splitToolbarButton"> |
| 164 |
<button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="13" data-l10n-id="previous"> |
| 165 |
<span data-l10n-id="previous_label">Previous</span> |
| 166 |
</button> |
| 167 |
<div class="splitToolbarButtonSeparator"></div> |
| 168 |
<button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="14" data-l10n-id="next"> |
| 169 |
<span data-l10n-id="next_label">Next</span> |
| 170 |
</button> |
| 171 |
</div> |
| 172 |
<label id="pageNumberLabel" class="toolbarLabel" for="pageNumber" data-l10n-id="page_label">Page: </label> |
| 173 |
<input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="15"> |
| 174 |
<span id="numPages" class="toolbarLabel"></span> |
| 175 |
</div> |
| 176 |
<div id="toolbarViewerRight"> |
| 177 |
<button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="31" data-l10n-id="presentation_mode"> |
| 178 |
<span data-l10n-id="presentation_mode_label">Presentation Mode</span> |
| 179 |
</button> |
| 180 |
|
| 181 |
<button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="32" data-l10n-id="open_file"> |
| 182 |
<span data-l10n-id="open_file_label">Open</span> |
| 183 |
</button> |
| 184 |
|
| 185 |
<button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="33" data-l10n-id="print"> |
| 186 |
<span data-l10n-id="print_label">Print</span> |
| 187 |
</button> |
| 188 |
|
| 189 |
<button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="34" data-l10n-id="download"> |
| 190 |
<span data-l10n-id="download_label">Download</span> |
| 191 |
</button> |
| 192 |
<a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark"> |
| 193 |
<span data-l10n-id="bookmark_label">Current View</span> |
| 194 |
</a> |
| 195 |
|
| 196 |
<div class="verticalToolbarSeparator hiddenSmallView"></div> |
| 197 |
|
| 198 |
<button id="secondaryToolbarToggle" class="toolbarButton hidden" title="Tools" tabindex="36" data-l10n-id="tools"> |
| 199 |
<span data-l10n-id="tools_label">Tools</span> |
| 200 |
</button> |
| 201 |
</div> |
| 202 |
<div class="outerCenter"> |
| 203 |
<div class="innerCenter" id="toolbarViewerMiddle"> |
| 204 |
<div class="splitToolbarButton"> |
| 205 |
<button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out" tabindex="21" data-l10n-id="zoom_out"> |
| 206 |
<span data-l10n-id="zoom_out_label">Zoom Out</span> |
| 207 |
</button> |
| 208 |
<div class="splitToolbarButtonSeparator"></div> |
| 209 |
<button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In" tabindex="22" data-l10n-id="zoom_in"> |
| 210 |
<span data-l10n-id="zoom_in_label">Zoom In</span> |
| 211 |
</button> |
| 212 |
</div> |
| 213 |
<span id="scaleSelectContainer" class="dropdownToolbarButton"> |
| 214 |
<select id="scaleSelect" title="Zoom" tabindex="23" data-l10n-id="zoom"> |
| 215 |
<option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option> |
| 216 |
<option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option> |
| 217 |
<option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Fit Page</option> |
| 218 |
<option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Full Width</option> |
| 219 |
<option id="customScaleOption" title="" value="custom"></option> |
| 220 |
<option title="" value="0.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 50 }'>50%</option> |
| 221 |
<option title="" value="0.75" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 75 }'>75%</option> |
| 222 |
<option title="" value="1" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 100 }'>100%</option> |
| 223 |
<option title="" value="1.25" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 125 }'>125%</option> |
| 224 |
<option title="" value="1.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 150 }'>150%</option> |
| 225 |
<option title="" value="2" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 200 }'>200%</option> |
| 226 |
<option title="" value="3" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 300 }'>300%</option> |
| 227 |
<option title="" value="4" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 400 }'>400%</option> |
| 228 |
</select> |
| 229 |
</span> |
| 230 |
</div> |
| 231 |
</div> |
| 232 |
</div> |
| 233 |
<div id="loadingBar"> |
| 234 |
<div class="progress"> |
| 235 |
<div class="glimmer"> |
| 236 |
</div> |
| 237 |
</div> |
| 238 |
</div> |
| 239 |
</div> |
| 240 |
</div> |
| 241 |
|
| 242 |
<menu type="context" id="viewerContextMenu"> |
| 243 |
<menuitem id="contextFirstPage" label="First Page" |
| 244 |
data-l10n-id="first_page"></menuitem> |
| 245 |
<menuitem id="contextLastPage" label="Last Page" |
| 246 |
data-l10n-id="last_page"></menuitem> |
| 247 |
<menuitem id="contextPageRotateCw" label="Rotate Clockwise" |
| 248 |
data-l10n-id="page_rotate_cw"></menuitem> |
| 249 |
<menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise" |
| 250 |
data-l10n-id="page_rotate_ccw"></menuitem> |
| 251 |
</menu> |
| 252 |
|
| 253 |
<div id="viewerContainer" tabindex="0"> |
| 254 |
<div id="viewer" class="pdfViewer"></div> |
| 255 |
</div> |
| 256 |
|
| 257 |
<div id="errorWrapper" hidden='true'> |
| 258 |
<div id="errorMessageLeft"> |
| 259 |
<span id="errorMessage"></span> |
| 260 |
<button id="errorShowMore" data-l10n-id="error_more_info"> |
| 261 |
More Information |
| 262 |
</button> |
| 263 |
<button id="errorShowLess" data-l10n-id="error_less_info" hidden='true'> |
| 264 |
Less Information |
| 265 |
</button> |
| 266 |
</div> |
| 267 |
<div id="errorMessageRight"> |
| 268 |
<button id="errorClose" data-l10n-id="error_close"> |
| 269 |
Close |
| 270 |
</button> |
| 271 |
</div> |
| 272 |
<div class="clearBoth"></div> |
| 273 |
<textarea id="errorMoreInfo" hidden='true' readonly="readonly"></textarea> |
| 274 |
</div> |
| 275 |
</div> <!-- mainContainer --> |
| 276 |
|
| 277 |
<div id="overlayContainer" class="hidden"> |
| 278 |
<div id="passwordOverlay" class="container hidden"> |
| 279 |
<div class="dialog"> |
| 280 |
<div class="row"> |
| 281 |
<p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p> |
| 282 |
</div> |
| 283 |
<div class="row"> |
| 284 |
<!-- The type="password" attribute is set via script, to prevent warnings in Firefox for all http:// documents. --> |
| 285 |
<input id="password" class="toolbarField"> |
| 286 |
</div> |
| 287 |
<div class="buttonRow"> |
| 288 |
<button id="passwordCancel" class="overlayButton"><span data-l10n-id="password_cancel">Cancel</span></button> |
| 289 |
<button id="passwordSubmit" class="overlayButton"><span data-l10n-id="password_ok">OK</span></button> |
| 290 |
</div> |
| 291 |
</div> |
| 292 |
</div> |
| 293 |
<div id="documentPropertiesOverlay" class="container hidden"> |
| 294 |
<div class="dialog"> |
| 295 |
<div class="row"> |
| 296 |
<span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p> |
| 297 |
</div> |
| 298 |
<div class="row"> |
| 299 |
<span data-l10n-id="document_properties_file_size">File size:</span> <p id="fileSizeField">-</p> |
| 300 |
</div> |
| 301 |
<div class="separator"></div> |
| 302 |
<div class="row"> |
| 303 |
<span data-l10n-id="document_properties_title">Title:</span> <p id="titleField">-</p> |
| 304 |
</div> |
| 305 |
<div class="row"> |
| 306 |
<span data-l10n-id="document_properties_author">Author:</span> <p id="authorField">-</p> |
| 307 |
</div> |
| 308 |
<div class="row"> |
| 309 |
<span data-l10n-id="document_properties_subject">Subject:</span> <p id="subjectField">-</p> |
| 310 |
</div> |
| 311 |
<div class="row"> |
| 312 |
<span data-l10n-id="document_properties_keywords">Keywords:</span> <p id="keywordsField">-</p> |
| 313 |
</div> |
| 314 |
<div class="row"> |
| 315 |
<span data-l10n-id="document_properties_creation_date">Creation Date:</span> <p id="creationDateField">-</p> |
| 316 |
</div> |
| 317 |
<div class="row"> |
| 318 |
<span data-l10n-id="document_properties_modification_date">Modification Date:</span> <p id="modificationDateField">-</p> |
| 319 |
</div> |
| 320 |
<div class="row"> |
| 321 |
<span data-l10n-id="document_properties_creator">Creator:</span> <p id="creatorField">-</p> |
| 322 |
</div> |
| 323 |
<div class="separator"></div> |
| 324 |
<div class="row"> |
| 325 |
<span data-l10n-id="document_properties_producer">PDF Producer:</span> <p id="producerField">-</p> |
| 326 |
</div> |
| 327 |
<div class="row"> |
| 328 |
<span data-l10n-id="document_properties_version">PDF Version:</span> <p id="versionField">-</p> |
| 329 |
</div> |
| 330 |
<div class="row"> |
| 331 |
<span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p> |
| 332 |
</div> |
| 333 |
<div class="buttonRow"> |
| 334 |
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button> |
| 335 |
</div> |
| 336 |
</div> |
| 337 |
</div> |
| 338 |
</div> <!-- overlayContainer --> |
| 339 |
|
| 340 |
</div> <!-- outerContainer --> |
| 341 |
<div id="printContainer"></div> |
| 342 |
<div id="mozPrintCallback-shim" hidden> |
| 343 |
<style> |
| 344 |
@media print { |
| 345 |
#printContainer div { |
| 346 |
page-break-after: always; |
| 347 |
page-break-inside: avoid; |
| 348 |
} |
| 349 |
} |
| 350 |
</style> |
| 351 |
<style scoped> |
| 352 |
#mozPrintCallback-shim { |
| 353 |
position: fixed; |
| 354 |
top: 0; |
| 355 |
left: 0; |
| 356 |
height: 100%; |
| 357 |
width: 100%; |
| 358 |
z-index: 9999999; |
| 359 |
|
| 360 |
display: block; |
| 361 |
text-align: center; |
| 362 |
background-color: rgba(0, 0, 0, 0.5); |
| 363 |
} |
| 364 |
#mozPrintCallback-shim[hidden] { |
| 365 |
display: none; |
| 366 |
} |
| 367 |
@media print { |
| 368 |
#mozPrintCallback-shim { |
| 369 |
display: none; |
| 370 |
} |
| 371 |
} |
| 372 |
|
| 373 |
#mozPrintCallback-shim .mozPrintCallback-dialog-box { |
| 374 |
display: inline-block; |
| 375 |
margin: -50px auto 0; |
| 376 |
position: relative; |
| 377 |
top: 45%; |
| 378 |
left: 0; |
| 379 |
min-width: 220px; |
| 380 |
max-width: 400px; |
| 381 |
|
| 382 |
padding: 9px; |
| 383 |
|
| 384 |
border: 1px solid hsla(0, 0%, 0%, .5); |
| 385 |
border-radius: 2px; |
| 386 |
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); |
| 387 |
|
| 388 |
background-color: #474747; |
| 389 |
|
| 390 |
color: hsl(0, 0%, 85%); |
| 391 |
font-size: 16px; |
| 392 |
line-height: 20px; |
| 393 |
} |
| 394 |
#mozPrintCallback-shim .progress-row { |
| 395 |
clear: both; |
| 396 |
padding: 1em 0; |
| 397 |
} |
| 398 |
#mozPrintCallback-shim progress { |
| 399 |
width: 100%; |
| 400 |
} |
| 401 |
#mozPrintCallback-shim .relative-progress { |
| 402 |
clear: both; |
| 403 |
float: right; |
| 404 |
} |
| 405 |
#mozPrintCallback-shim .progress-actions { |
| 406 |
clear: both; |
| 407 |
} |
| 408 |
</style> |
| 409 |
<div class="mozPrintCallback-dialog-box"> |
| 410 |
<!-- TODO: Localise the following strings --> |
| 411 |
Preparing document for printing... |
| 412 |
<div class="progress-row"> |
| 413 |
<progress value="0" max="100"></progress> |
| 414 |
<span class="relative-progress">0%</span> |
| 415 |
</div> |
| 416 |
<div class="progress-actions"> |
| 417 |
<input type="button" value="Cancel" class="mozPrintCallback-cancel"> |
| 418 |
</div> |
| 419 |
</div> |
| 420 |
</div> |
| 421 |
|
| 422 |
</body> |
| 423 |
</html> |
| 424 |
|