Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-06-21 13:38:10 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-03-17 22:12:30 +0300
commit7d50bfd717f9175e5736710477b7636063b7e1c4 (patch)
treec643c6607b4c7fd4f89023d46106e474e98e0318 /templates
parent088108bb5ff60e364b5aa7fdaee87dc2635c490e (diff)
Update "viewer.php" to PDF.js 2.0.943
The "viewer.php" acts as the "viewer.html" file included in the PDF.js package. This commit updates "viewer.php" with the changes to "viewer.html" from PDF.js 1.9.426 to 2.0.943 while respecting the customized parts of "viewer.php" (like the close button or the "nonce" attribute). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/viewer.php42
1 files changed, 39 insertions, 3 deletions
diff --git a/templates/viewer.php b/templates/viewer.php
index 7f06763..4863a90 100644
--- a/templates/viewer.php
+++ b/templates/viewer.php
@@ -26,7 +26,7 @@ Adobe CMap resources are covered by their own copyright but the same license:
See https://github.com/adobe-type-tools/cmap-resources
-->
-<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
+<html dir="ltr" mozdisallowselectionprint>
<head data-workersrc="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/pdfjs/build/pdf.worker.js')) ?>?v=<?php p($version) ?>"
data-cmapurl="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/pdfjs/web/cmaps/')) ?>">
<meta charset="utf-8">
@@ -74,6 +74,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="attachmentsView" class="hidden">
</div>
</div>
+ <div id="sidebarResizer" class="hidden"></div>
</div> <!-- sidebarContainer -->
<div id="mainContainer">
@@ -91,11 +92,15 @@ See https://github.com/adobe-type-tools/cmap-resources
</div>
</div>
- <div id="findbarOptionsContainer">
+ <div id="findbarOptionsOneContainer">
<input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94">
<label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight all</label>
<input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95">
<label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match case</label>
+ </div>
+ <div id="findbarOptionsTwoContainer">
+ <input type="checkbox" id="findEntireWord" class="toolbarField" tabindex="96">
+ <label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole words</label>
<span id="findResultsCount" class="toolbarLabel hidden"></span>
</div>
@@ -155,7 +160,31 @@ See https://github.com/adobe-type-tools/cmap-resources
<div class="horizontalToolbarSeparator"></div>
- <button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="62" data-l10n-id="document_properties">
+ <button id="scrollVertical" class="secondaryToolbarButton scrollModeButtons scrollVertical toggled" title="Use Vertical Scrolling" tabindex="62" data-l10n-id="scroll_vertical">
+ <span data-l10n-id="scroll_vertical_label">Vertical Scrolling</span>
+ </button>
+ <button id="scrollHorizontal" class="secondaryToolbarButton scrollModeButtons scrollHorizontal" title="Use Horizontal Scrolling" tabindex="63" data-l10n-id="scroll_horizontal">
+ <span data-l10n-id="scroll_horizontal_label">Horizontal Scrolling</span>
+ </button>
+ <button id="scrollWrapped" class="secondaryToolbarButton scrollModeButtons scrollWrapped" title="Use Wrapped Scrolling" tabindex="64" data-l10n-id="scroll_wrapped">
+ <span data-l10n-id="scroll_wrapped_label">Wrapped Scrolling</span>
+ </button>
+
+ <div class="horizontalToolbarSeparator scrollModeButtons"></div>
+
+ <button id="spreadNone" class="secondaryToolbarButton spreadModeButtons spreadNone toggled" title="Do not join page spreads" tabindex="65" data-l10n-id="spread_none">
+ <span data-l10n-id="spread_none_label">No Spreads</span>
+ </button>
+ <button id="spreadOdd" class="secondaryToolbarButton spreadModeButtons spreadOdd" title="Join page spreads starting with odd-numbered pages" tabindex="66" data-l10n-id="spread_odd">
+ <span data-l10n-id="spread_odd_label">Odd Spreads</span>
+ </button>
+ <button id="spreadEven" class="secondaryToolbarButton spreadModeButtons spreadEven" title="Join page spreads starting with even-numbered pages" tabindex="67" data-l10n-id="spread_even">
+ <span data-l10n-id="spread_even_label">Even Spreads</span>
+ </button>
+
+ <div class="horizontalToolbarSeparator spreadModeButtons"></div>
+
+ <button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="68" data-l10n-id="document_properties">
<span data-l10n-id="document_properties_label">Document Properties…</span>
</button>
</div>
@@ -342,6 +371,13 @@ See https://github.com/adobe-type-tools/cmap-resources
<div class="row">
<span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p>
</div>
+ <div class="row">
+ <span data-l10n-id="document_properties_page_size">Page Size:</span> <p id="pageSizeField">-</p>
+ </div>
+ <div class="separator"></div>
+ <div class="row">
+ <span data-l10n-id="document_properties_linearized">Fast Web View:</span> <p id="linearizedField">-</p>
+ </div>
<div class="buttonRow">
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
</div>