Merge branch 'develop' into FOTON
This commit is contained in:
@@ -199,7 +199,6 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<script src="compatibility.js"></script>
|
<script src="compatibility.js"></script>
|
||||||
<script src="l10n.js"></script>
|
<script src="l10n.js"></script>
|
||||||
<script src="../build/pdf.js"></script>
|
<script src="../build/pdf.js"></script>
|
||||||
|
|
||||||
<script src="viewer.js"></script>
|
<script src="viewer.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -347,11 +346,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<span data-l10n-id="open_file_label">Open</span>
|
<span data-l10n-id="open_file_label">Open</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="53" data-l10n-id="print">
|
<button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="53" data-l10n-id="print">
|
||||||
<span data-l10n-id="print_label">Print</span>
|
<span data-l10n-id="print_label">Print</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button id="secondaryDownload" class="secondaryToolbarButton visibleMediumView" title="Download" tabindex="54" data-l10n-id="download">
|
<button id="secondaryDownload" class="secondaryToolbarButton visibleMediumView" title="Download" tabindex="54" data-l10n-id="download">
|
||||||
<span data-l10n-id="download_label">Download</span>
|
<span data-l10n-id="download_label">Download</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
@@ -3145,9 +3145,9 @@ const PDFViewerApplication = {
|
|||||||
|
|
||||||
eventBus._on("switchannotationeditorparams", webViewerSwitchAnnotationEditorParams);
|
eventBus._on("switchannotationeditorparams", webViewerSwitchAnnotationEditorParams);
|
||||||
|
|
||||||
eventBus._on("print", webViewerPrint);
|
// eventBus._on("print", webViewerPrint);
|
||||||
|
|
||||||
eventBus._on("download", webViewerDownload);
|
// eventBus._on("download", webViewerDownload);
|
||||||
|
|
||||||
eventBus._on("firstpage", webViewerFirstPage);
|
eventBus._on("firstpage", webViewerFirstPage);
|
||||||
|
|
||||||
@@ -3199,7 +3199,7 @@ const PDFViewerApplication = {
|
|||||||
|
|
||||||
eventBus._on("fileinputchange", webViewerFileInputChange);
|
eventBus._on("fileinputchange", webViewerFileInputChange);
|
||||||
|
|
||||||
eventBus._on("openfile", webViewerOpenFile);
|
// eventBus._on("openfile", webViewerOpenFile);
|
||||||
},
|
},
|
||||||
|
|
||||||
bindWindowEvents() {
|
bindWindowEvents() {
|
||||||
@@ -3494,6 +3494,15 @@ function webViewerInitialized() {
|
|||||||
appConfig,
|
appConfig,
|
||||||
eventBus
|
eventBus
|
||||||
} = PDFViewerApplication;
|
} = PDFViewerApplication;
|
||||||
|
appConfig.toolbar.openFile.hidden = true;
|
||||||
|
appConfig.secondaryToolbar.openFileButton.hidden = true;
|
||||||
|
appConfig.toolbar.print.hidden = true;
|
||||||
|
appConfig.secondaryToolbar.printButton.hidden = true;
|
||||||
|
appConfig.toolbar.download.hidden = true;
|
||||||
|
appConfig.secondaryToolbar.downloadButton.hidden = true;
|
||||||
|
appConfig.toolbar.viewBookmark.hidden = true;
|
||||||
|
appConfig.secondaryToolbar.viewBookmarkButton.hidden = true;
|
||||||
|
|
||||||
let file;
|
let file;
|
||||||
const queryString = document.location.search.substring(1);
|
const queryString = document.location.search.substring(1);
|
||||||
const params = (0, _ui_utils.parseQueryString)(queryString);
|
const params = (0, _ui_utils.parseQueryString)(queryString);
|
||||||
|
|||||||
Reference in New Issue
Block a user