viewer.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright 2012 Mozilla Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. Adobe CMap resources are covered by their own copyright but the same license:
  14. Copyright 1990-2015 Adobe Systems Incorporated.
  15. See https://github.com/adobe-type-tools/cmap-resources
  16. -->
  17. <html dir="ltr" mozdisallowselectionprint>
  18. <head>
  19. <meta charset="utf-8">
  20. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  21. <!--#if GENERIC || CHROME-->
  22. <meta name="google" content="notranslate">
  23. <!--#endif-->
  24. <title>PDF.js viewer</title>
  25. <!--#if MOZCENTRAL-->
  26. <!--#include viewer-snippet-firefox-extension.html-->
  27. <!--#endif-->
  28. <!--#if CHROME-->
  29. <!--#include viewer-snippet-chrome-extension.html-->
  30. <!--#endif-->
  31. <link rel="stylesheet" href="viewer.css">
  32. <!--#if !PRODUCTION-->
  33. <link rel="resource" type="application/l10n" href="../locale.properties">
  34. <!--#endif-->
  35. <!--#if !PRODUCTION-->
  36. <!--#endif-->
  37. <!--#if (GENERIC && !MINIFIED) -->
  38. <!--#include viewer-snippet.html-->
  39. <!--#endif-->
  40. <!--#if !MINIFIED -->
  41. <!--<script src="viewer.js"></script>-->
  42. <!--#else-->
  43. <!--#include viewer-snippet-minified.html-->
  44. <!--#endif-->
  45. <script defer src="../node_modules/es-module-shims/dist/es-module-shims.js"></script>
  46. <script type="importmap-shim">
  47. {
  48. "imports": {
  49. "pdfjs/": "../src/",
  50. "pdfjs-lib": "../src/pdf.js",
  51. "pdfjs-web/": "./",
  52. "pdfjs-fitCurve": "../build/dev-fitCurve/fit_curve.js"
  53. }
  54. }
  55. </script>
  56. <script src="viewer.js" type="module-shim"></script>
  57. </head>
  58. <body tabindex="1">
  59. <div id="outerContainer">
  60. <div id="sidebarContainer">
  61. <div id="toolbarSidebar">
  62. <div id="toolbarSidebarLeft">
  63. <div id="sidebarViewButtons" class="splitToolbarButton toggled" role="radiogroup">
  64. <button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2"
  65. data-l10n-id="thumbs" role="radio" aria-checked="true" aria-controls="thumbnailView">
  66. <span data-l10n-id="thumbs_label">Thumbnails</span>
  67. </button>
  68. <button id="viewOutline" class="toolbarButton"
  69. title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3"
  70. data-l10n-id="document_outline" role="radio" aria-checked="false" aria-controls="outlineView">
  71. <span data-l10n-id="document_outline_label">Document Outline</span>
  72. </button>
  73. <button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4"
  74. data-l10n-id="attachments" role="radio" aria-checked="false" aria-controls="attachmentsView">
  75. <span data-l10n-id="attachments_label">Attachments</span>
  76. </button>
  77. <button id="viewLayers" class="toolbarButton"
  78. title="Show Layers (double-click to reset all layers to the default state)" tabindex="5"
  79. data-l10n-id="layers" role="radio" aria-checked="false" aria-controls="layersView">
  80. <span data-l10n-id="layers_label">Layers</span>
  81. </button>
  82. </div>
  83. </div>
  84. <div id="toolbarSidebarRight">
  85. <div id="outlineOptionsContainer" class="hidden">
  86. <div class="verticalToolbarSeparator"></div>
  87. <button id="currentOutlineItem" class="toolbarButton" disabled="disabled" title="Find Current Outline Item"
  88. tabindex="6" data-l10n-id="current_outline_item">
  89. <span data-l10n-id="current_outline_item_label">Current Outline Item</span>
  90. </button>
  91. </div>
  92. </div>
  93. </div>
  94. <div id="sidebarContent">
  95. <div id="thumbnailView">
  96. </div>
  97. <div id="outlineView" class="hidden">
  98. </div>
  99. <div id="attachmentsView" class="hidden">
  100. </div>
  101. <div id="layersView" class="hidden">
  102. </div>
  103. </div>
  104. <div id="sidebarResizer"></div>
  105. </div> <!-- sidebarContainer -->
  106. <div id="mainContainer">
  107. <div class="findbar hidden doorHanger" id="findbar">
  108. <div id="findbarInputContainer">
  109. <input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91"
  110. data-l10n-id="find_input" aria-invalid="false">
  111. <div class="splitToolbarButton">
  112. <button id="findPrevious" class="toolbarButton" title="Find the previous occurrence of the phrase"
  113. tabindex="92" data-l10n-id="find_previous">
  114. <span data-l10n-id="find_previous_label">Previous</span>
  115. </button>
  116. <div class="splitToolbarButtonSeparator"></div>
  117. <button id="findNext" class="toolbarButton" title="Find the next occurrence of the phrase" tabindex="93"
  118. data-l10n-id="find_next">
  119. <span data-l10n-id="find_next_label">Next</span>
  120. </button>
  121. </div>
  122. </div>
  123. <div id="findbarOptionsOneContainer">
  124. <input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94">
  125. <label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight All</label>
  126. <input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95">
  127. <label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match Case</label>
  128. </div>
  129. <div id="findbarOptionsTwoContainer">
  130. <input type="checkbox" id="findMatchDiacritics" class="toolbarField" tabindex="96">
  131. <label for="findMatchDiacritics" class="toolbarLabel" data-l10n-id="find_match_diacritics_label">Match
  132. Diacritics</label>
  133. <input type="checkbox" id="findEntireWord" class="toolbarField" tabindex="97">
  134. <label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
  135. </div>
  136. <div id="findbarMessageContainer" aria-live="polite">
  137. <span id="findResultsCount" class="toolbarLabel"></span>
  138. <span id="findMsg" class="toolbarLabel"></span>
  139. </div>
  140. </div> <!-- findbar -->
  141. <div class="editorParamsToolbar hidden doorHangerRight" id="editorFreeTextParamsToolbar">
  142. <div class="editorParamsToolbarContainer">
  143. <div class="editorParamsSetter">
  144. <label for="editorFreeTextColor" class="editorParamsLabel"
  145. data-l10n-id="editor_free_text_color">Color</label>
  146. <input type="color" id="editorFreeTextColor" class="editorParamsColor" tabindex="100">
  147. </div>
  148. <div class="editorParamsSetter">
  149. <label for="editorFreeTextFontSize" class="editorParamsLabel"
  150. data-l10n-id="editor_free_text_size">Size</label>
  151. <input type="range" id="editorFreeTextFontSize" class="editorParamsSlider" value="10" min="5" max="100"
  152. step="1" tabindex="101">
  153. </div>
  154. </div>
  155. </div>
  156. <div class="editorParamsToolbar hidden doorHangerRight" id="editorInkParamsToolbar">
  157. <div class="editorParamsToolbarContainer">
  158. <div class="editorParamsSetter">
  159. <label for="editorInkColor" class="editorParamsLabel" data-l10n-id="editor_ink_color">Color</label>
  160. <input type="color" id="editorInkColor" class="editorParamsColor" tabindex="102">
  161. </div>
  162. <div class="editorParamsSetter">
  163. <label for="editorInkThickness" class="editorParamsLabel"
  164. data-l10n-id="editor_ink_thickness">Thickness</label>
  165. <input type="range" id="editorInkThickness" class="editorParamsSlider" value="1" min="1" max="20" step="1"
  166. tabindex="103">
  167. </div>
  168. <div class="editorParamsSetter">
  169. <label for="editorInkOpacity" class="editorParamsLabel" data-l10n-id="editor_ink_opacity">Opacity</label>
  170. <input type="range" id="editorInkOpacity" class="editorParamsSlider" value="100" min="1" max="100" step="1"
  171. tabindex="104">
  172. </div>
  173. </div>
  174. </div>
  175. <div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
  176. <div id="secondaryToolbarButtonContainer">
  177. <!--#if GENERIC-->
  178. <button id="secondaryOpenFile" class="secondaryToolbarButton visibleLargeView" title="Open File" tabindex="51"
  179. data-l10n-id="open_file">
  180. <span data-l10n-id="open_file_label">Open</span>
  181. </button>
  182. <!--#endif-->
  183. <button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="52"
  184. data-l10n-id="print">
  185. <span data-l10n-id="print_label">Print</span>
  186. </button>
  187. <button id="secondaryDownload" class="secondaryToolbarButton visibleMediumView" title="Save" tabindex="53"
  188. data-l10n-id="save">
  189. <span data-l10n-id="save_label">Save</span>
  190. </button>
  191. <!--#if GENERIC-->
  192. <div class="horizontalToolbarSeparator visibleLargeView"></div>
  193. <!--#else-->
  194. <!-- <div class="horizontalToolbarSeparator visibleMediumView"></div>-->
  195. <!--#endif-->
  196. <button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54"
  197. data-l10n-id="presentation_mode">
  198. <span data-l10n-id="presentation_mode_label">Presentation Mode</span>
  199. </button>
  200. <a href="#" id="viewBookmark" class="secondaryToolbarButton" title="Current view (copy or open in new window)"
  201. tabindex="55" data-l10n-id="bookmark">
  202. <span data-l10n-id="bookmark_label">Current View</span>
  203. </a>
  204. <div id="viewBookmarkSeparator" class="horizontalToolbarSeparator"></div>
  205. <button id="firstPage" class="secondaryToolbarButton" title="Go to First Page" tabindex="56"
  206. data-l10n-id="first_page">
  207. <span data-l10n-id="first_page_label">Go to First Page</span>
  208. </button>
  209. <button id="lastPage" class="secondaryToolbarButton" title="Go to Last Page" tabindex="57"
  210. data-l10n-id="last_page">
  211. <span data-l10n-id="last_page_label">Go to Last Page</span>
  212. </button>
  213. <div class="horizontalToolbarSeparator"></div>
  214. <button id="pageRotateCw" class="secondaryToolbarButton" title="Rotate Clockwise" tabindex="58"
  215. data-l10n-id="page_rotate_cw">
  216. <span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span>
  217. </button>
  218. <button id="pageRotateCcw" class="secondaryToolbarButton" title="Rotate Counterclockwise" tabindex="59"
  219. data-l10n-id="page_rotate_ccw">
  220. <span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
  221. </button>
  222. <div class="horizontalToolbarSeparator"></div>
  223. <div id="cursorToolButtons" role="radiogroup">
  224. <button id="cursorSelectTool" class="secondaryToolbarButton toggled" title="Enable Text Selection Tool"
  225. tabindex="60" data-l10n-id="cursor_text_select_tool" role="radio" aria-checked="true">
  226. <span data-l10n-id="cursor_text_select_tool_label">Text Selection Tool</span>
  227. </button>
  228. <button id="cursorHandTool" class="secondaryToolbarButton" title="Enable Hand Tool" tabindex="61"
  229. data-l10n-id="cursor_hand_tool" role="radio" aria-checked="false">
  230. <span data-l10n-id="cursor_hand_tool_label">Hand Tool</span>
  231. </button>
  232. </div>
  233. <div class="horizontalToolbarSeparator"></div>
  234. <div id="scrollModeButtons" role="radiogroup">
  235. <button id="scrollPage" class="secondaryToolbarButton" title="Use Page Scrolling" tabindex="62"
  236. data-l10n-id="scroll_page" role="radio" aria-checked="false">
  237. <span data-l10n-id="scroll_page_label">Page Scrolling</span>
  238. </button>
  239. <button id="scrollVertical" class="secondaryToolbarButton toggled" title="Use Vertical Scrolling"
  240. tabindex="63" data-l10n-id="scroll_vertical" role="radio" aria-checked="true">
  241. <span data-l10n-id="scroll_vertical_label">Vertical Scrolling</span>
  242. </button>
  243. <button id="scrollHorizontal" class="secondaryToolbarButton" title="Use Horizontal Scrolling" tabindex="64"
  244. data-l10n-id="scroll_horizontal" role="radio" aria-checked="false">
  245. <span data-l10n-id="scroll_horizontal_label">Horizontal Scrolling</span>
  246. </button>
  247. <button id="scrollWrapped" class="secondaryToolbarButton" title="Use Wrapped Scrolling" tabindex="65"
  248. data-l10n-id="scroll_wrapped" role="radio" aria-checked="false">
  249. <span data-l10n-id="scroll_wrapped_label">Wrapped Scrolling</span>
  250. </button>
  251. </div>
  252. <div class="horizontalToolbarSeparator"></div>
  253. <div id="spreadModeButtons" role="radiogroup">
  254. <button id="spreadNone" class="secondaryToolbarButton toggled" title="Do not join page spreads"
  255. tabindex="66" data-l10n-id="spread_none" role="radio" aria-checked="true">
  256. <span data-l10n-id="spread_none_label">No Spreads</span>
  257. </button>
  258. <button id="spreadOdd" class="secondaryToolbarButton"
  259. title="Join page spreads starting with odd-numbered pages" tabindex="67" data-l10n-id="spread_odd"
  260. role="radio" aria-checked="false">
  261. <span data-l10n-id="spread_odd_label">Odd Spreads</span>
  262. </button>
  263. <button id="spreadEven" class="secondaryToolbarButton"
  264. title="Join page spreads starting with even-numbered pages" tabindex="68" data-l10n-id="spread_even"
  265. role="radio" aria-checked="false">
  266. <span data-l10n-id="spread_even_label">Even Spreads</span>
  267. </button>
  268. </div>
  269. <div class="horizontalToolbarSeparator"></div>
  270. <button id="documentProperties" class="secondaryToolbarButton" title="Document Properties…" tabindex="69"
  271. data-l10n-id="document_properties" aria-controls="documentPropertiesDialog">
  272. <span data-l10n-id="document_properties_label">Document Properties…</span>
  273. </button>
  274. </div>
  275. </div> <!-- secondaryToolbar -->
  276. <div class="toolbar">
  277. <div id="toolbarContainer">
  278. <div id="toolbarViewer">
  279. <div id="toolbarViewerLeft">
  280. <button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11"
  281. data-l10n-id="toggle_sidebar" aria-expanded="false" aria-controls="sidebarContainer">
  282. <span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
  283. </button>
  284. <div class="toolbarButtonSpacer"></div>
  285. <button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar"
  286. aria-expanded="false" aria-controls="findbar">
  287. <span data-l10n-id="findbar_label">Find</span>
  288. </button>
  289. <div class="splitToolbarButton hiddenSmallView">
  290. <button class="toolbarButton" title="Previous Page" id="previous" tabindex="13" data-l10n-id="previous">
  291. <span data-l10n-id="previous_label">Previous</span>
  292. </button>
  293. <div class="splitToolbarButtonSeparator"></div>
  294. <button class="toolbarButton" title="Next Page" id="next" tabindex="14" data-l10n-id="next">
  295. <span data-l10n-id="next_label">Next</span>
  296. </button>
  297. </div>
  298. <input type="number" id="pageNumber" class="toolbarField" title="Page" value="1" min="1" tabindex="15"
  299. data-l10n-id="page" autocomplete="off">
  300. <span id="numPages" class="toolbarLabel"></span>
  301. </div>
  302. <div id="toolbarViewerRight">
  303. <!--#if GENERIC-->
  304. <button id="openFile" class="toolbarButton hiddenLargeView" title="Open File" tabindex="31"
  305. data-l10n-id="open_file">
  306. <span data-l10n-id="open_file_label">Open</span>
  307. </button>
  308. <!--#endif-->
  309. <button id="print" class="toolbarButton hiddenMediumView" title="Print" tabindex="32"
  310. data-l10n-id="print">
  311. <span data-l10n-id="print_label">Print</span>
  312. </button>
  313. <button id="download" class="toolbarButton hiddenMediumView" title="Save" tabindex="33"
  314. data-l10n-id="save">
  315. <span data-l10n-id="save_label">Save</span>
  316. </button>
  317. <div class="verticalToolbarSeparator hiddenMediumView"></div>
  318. <div id="editorModeButtons" class="splitToolbarButton toggled" role="radiogroup">
  319. <button id="editorFreeText" class="toolbarButton" disabled="disabled" title="Text" role="radio"
  320. aria-checked="false" tabindex="34" data-l10n-id="editor_free_text2">
  321. <span data-l10n-id="editor_free_text2_label">Text</span>
  322. </button>
  323. <button id="editorInk" class="toolbarButton" disabled="disabled" title="Draw" role="radio"
  324. aria-checked="false" tabindex="35" data-l10n-id="editor_ink2">
  325. <span data-l10n-id="editor_ink2_label">Draw</span>
  326. </button>
  327. </div>
  328. <div id="editorModeSeparator" class="verticalToolbarSeparator"></div>
  329. <button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="48" data-l10n-id="tools"
  330. aria-expanded="false" aria-controls="secondaryToolbar">
  331. <span data-l10n-id="tools_label">Tools</span>
  332. </button>
  333. </div>
  334. <div id="toolbarViewerMiddle">
  335. <div class="splitToolbarButton">
  336. <button id="zoomOut" class="toolbarButton" title="Zoom Out" tabindex="21" data-l10n-id="zoom_out">
  337. <span data-l10n-id="zoom_out_label">Zoom Out</span>
  338. </button>
  339. <div class="splitToolbarButtonSeparator"></div>
  340. <button id="zoomIn" class="toolbarButton" title="Zoom In" tabindex="22" data-l10n-id="zoom_in">
  341. <span data-l10n-id="zoom_in_label">Zoom In</span>
  342. </button>
  343. </div>
  344. <span id="scaleSelectContainer" class="dropdownToolbarButton">
  345. <select id="scaleSelect" title="Zoom" tabindex="23" data-l10n-id="zoom">
  346. <option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">
  347. Automatic Zoom</option>
  348. <option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual
  349. Size</option>
  350. <option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Page Fit</option>
  351. <option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Page Width
  352. </option>
  353. <option id="customScaleOption" title="" value="custom" disabled="disabled" hidden="true"></option>
  354. <option title="" value="0.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 50 }'>50%
  355. </option>
  356. <option title="" value="0.75" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 75 }'>75%
  357. </option>
  358. <option title="" value="1" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 100 }'>100%
  359. </option>
  360. <option title="" value="1.25" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 125 }'>125%
  361. </option>
  362. <option title="" value="1.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 150 }'>150%
  363. </option>
  364. <option title="" value="2" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 200 }'>200%
  365. </option>
  366. <option title="" value="3" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 300 }'>300%
  367. </option>
  368. <option title="" value="4" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 400 }'>400%
  369. </option>
  370. </select>
  371. </span>
  372. </div>
  373. </div>
  374. <div id="loadingBar">
  375. <div class="progress">
  376. <div class="glimmer">
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <div id="viewerContainer" tabindex="0">
  383. <div id="viewer" class="pdfViewer"></div>
  384. </div>
  385. </div> <!-- mainContainer -->
  386. <div id="dialogContainer">
  387. <dialog id="passwordDialog">
  388. <div class="row">
  389. <label for="password" id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF
  390. file:</label>
  391. </div>
  392. <div class="row">
  393. <input type="password" id="password" class="toolbarField">
  394. </div>
  395. <div class="buttonRow">
  396. <button id="passwordCancel" class="dialogButton"><span data-l10n-id="password_cancel">Cancel</span></button>
  397. <button id="passwordSubmit" class="dialogButton"><span data-l10n-id="password_ok">OK</span></button>
  398. </div>
  399. </dialog>
  400. <dialog id="documentPropertiesDialog">
  401. <div class="row">
  402. <span id="fileNameLabel" data-l10n-id="document_properties_file_name">File name:</span>
  403. <p id="fileNameField" aria-labelledby="fileNameLabel">-</p>
  404. </div>
  405. <div class="row">
  406. <span id="fileSizeLabel" data-l10n-id="document_properties_file_size">File size:</span>
  407. <p id="fileSizeField" aria-labelledby="fileSizeLabel">-</p>
  408. </div>
  409. <div class="separator"></div>
  410. <div class="row">
  411. <span id="titleLabel" data-l10n-id="document_properties_title">Title:</span>
  412. <p id="titleField" aria-labelledby="titleLabel">-</p>
  413. </div>
  414. <div class="row">
  415. <span id="authorLabel" data-l10n-id="document_properties_author">Author:</span>
  416. <p id="authorField" aria-labelledby="authorLabel">-</p>
  417. </div>
  418. <div class="row">
  419. <span id="subjectLabel" data-l10n-id="document_properties_subject">Subject:</span>
  420. <p id="subjectField" aria-labelledby="subjectLabel">-</p>
  421. </div>
  422. <div class="row">
  423. <span id="keywordsLabel" data-l10n-id="document_properties_keywords">Keywords:</span>
  424. <p id="keywordsField" aria-labelledby="keywordsLabel">-</p>
  425. </div>
  426. <div class="row">
  427. <span id="creationDateLabel" data-l10n-id="document_properties_creation_date">Creation Date:</span>
  428. <p id="creationDateField" aria-labelledby="creationDateLabel">-</p>
  429. </div>
  430. <div class="row">
  431. <span id="modificationDateLabel" data-l10n-id="document_properties_modification_date">Modification
  432. Date:</span>
  433. <p id="modificationDateField" aria-labelledby="modificationDateLabel">-</p>
  434. </div>
  435. <div class="row">
  436. <span id="creatorLabel" data-l10n-id="document_properties_creator">Creator:</span>
  437. <p id="creatorField" aria-labelledby="creatorLabel">-</p>
  438. </div>
  439. <div class="separator"></div>
  440. <div class="row">
  441. <span id="producerLabel" data-l10n-id="document_properties_producer">PDF Producer:</span>
  442. <p id="producerField" aria-labelledby="producerLabel">-</p>
  443. </div>
  444. <div class="row">
  445. <span id="versionLabel" data-l10n-id="document_properties_version">PDF Version:</span>
  446. <p id="versionField" aria-labelledby="versionLabel">-</p>
  447. </div>
  448. <div class="row">
  449. <span id="pageCountLabel" data-l10n-id="document_properties_page_count">Page Count:</span>
  450. <p id="pageCountField" aria-labelledby="pageCountLabel">-</p>
  451. </div>
  452. <div class="row">
  453. <span id="pageSizeLabel" data-l10n-id="document_properties_page_size">Page Size:</span>
  454. <p id="pageSizeField" aria-labelledby="pageSizeLabel">-</p>
  455. </div>
  456. <div class="separator"></div>
  457. <div class="row">
  458. <span id="linearizedLabel" data-l10n-id="document_properties_linearized">Fast Web View:</span>
  459. <p id="linearizedField" aria-labelledby="linearizedLabel">-</p>
  460. </div>
  461. <div class="buttonRow">
  462. <button id="documentPropertiesClose" class="dialogButton"><span
  463. data-l10n-id="document_properties_close">Close</span></button>
  464. </div>
  465. </dialog>
  466. <!--#if !MOZCENTRAL-->
  467. <dialog id="printServiceDialog" style="min-width: 200px;">
  468. <div class="row">
  469. <span data-l10n-id="print_progress_message">Preparing document for printing…</span>
  470. </div>
  471. <div class="row">
  472. <progress value="0" max="100"></progress>
  473. <span data-l10n-id="print_progress_percent" data-l10n-args='{ "progress": 0 }'
  474. class="relative-progress">0%</span>
  475. </div>
  476. <div class="buttonRow">
  477. <button id="printCancel" class="dialogButton"><span data-l10n-id="print_progress_close">Cancel</span></button>
  478. </div>
  479. </dialog>
  480. <!--#endif-->
  481. <!--#if CHROME-->
  482. <!--#include viewer-snippet-chrome-overlays.html-->
  483. <!--#endif-->
  484. </div> <!-- dialogContainer -->
  485. </div> <!-- outerContainer -->
  486. <div id="printContainer"></div>
  487. <!--#if GENERIC-->
  488. <input type="file" id="fileInput" class="hidden">
  489. <!--#endif-->
  490. </body>
  491. </html>