Browse Source

Remove botão de download do visualizador

master
Guilherme Capanema de Barros 5 years ago
parent
commit
cf2609a57c
2 changed files with 0 additions and 15 deletions
  1. +0
    -7
      pdfjs/web/viewer.html
  2. +0
    -8
      pdfjs/web/viewer.js

+ 0
- 7
pdfjs/web/viewer.html View File

@ -111,10 +111,6 @@ See https://github.com/adobe-type-tools/cmap-resources
<span data-l10n-id="print_label">Print</span> <span data-l10n-id="print_label">Print</span>
</button> </button>
<button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="54" data-l10n-id="download">
<span data-l10n-id="download_label">Download</span>
</button>
<a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark"> <a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
<span data-l10n-id="bookmark_label">Current View</span> <span data-l10n-id="bookmark_label">Current View</span>
</a> </a>
@ -210,9 +206,6 @@ See https://github.com/adobe-type-tools/cmap-resources
<span data-l10n-id="print_label">Print</span> <span data-l10n-id="print_label">Print</span>
</button> </button>
<button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="34" data-l10n-id="download">
<span data-l10n-id="download_label">Download</span>
</button>
<a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark"> <a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark">
<span data-l10n-id="bookmark_label">Current View</span> <span data-l10n-id="bookmark_label">Current View</span>
</a> </a>


+ 0
- 8
pdfjs/web/viewer.js View File

@ -148,7 +148,6 @@ function getViewerConfiguration() {
viewFind: document.getElementById("viewFind"), viewFind: document.getElementById("viewFind"),
print: document.getElementById("print"), print: document.getElementById("print"),
presentationModeButton: document.getElementById("presentationMode"), presentationModeButton: document.getElementById("presentationMode"),
download: document.getElementById("download"),
viewBookmark: document.getElementById("viewBookmark") viewBookmark: document.getElementById("viewBookmark")
}, },
secondaryToolbar: { secondaryToolbar: {
@ -157,7 +156,6 @@ function getViewerConfiguration() {
toolbarButtonContainer: document.getElementById("secondaryToolbarButtonContainer"), toolbarButtonContainer: document.getElementById("secondaryToolbarButtonContainer"),
presentationModeButton: document.getElementById("secondaryPresentationMode"), presentationModeButton: document.getElementById("secondaryPresentationMode"),
printButton: document.getElementById("secondaryPrint"), printButton: document.getElementById("secondaryPrint"),
downloadButton: document.getElementById("secondaryDownload"),
viewBookmarkButton: document.getElementById("secondaryViewBookmark"), viewBookmarkButton: document.getElementById("secondaryViewBookmark"),
firstPageButton: document.getElementById("firstPage"), firstPageButton: document.getElementById("firstPage"),
lastPageButton: document.getElementById("lastPage"), lastPageButton: document.getElementById("lastPage"),
@ -1576,8 +1574,6 @@ const PDFViewerApplication = {
eventBus._on("print", webViewerPrint); eventBus._on("print", webViewerPrint);
eventBus._on("download", webViewerDownload);
eventBus._on("firstpage", webViewerFirstPage); eventBus._on("firstpage", webViewerFirstPage);
eventBus._on("lastpage", webViewerLastPage); eventBus._on("lastpage", webViewerLastPage);
@ -1702,8 +1698,6 @@ const PDFViewerApplication = {
eventBus._off("print", webViewerPrint); eventBus._off("print", webViewerPrint);
eventBus._off("download", webViewerDownload);
eventBus._off("firstpage", webViewerFirstPage); eventBus._off("firstpage", webViewerFirstPage);
eventBus._off("lastpage", webViewerLastPage); eventBus._off("lastpage", webViewerLastPage);
@ -2126,8 +2120,6 @@ let webViewerFileInputChange, webViewerOpenFile;
const appConfig = PDFViewerApplication.appConfig; const appConfig = PDFViewerApplication.appConfig;
appConfig.toolbar.viewBookmark.setAttribute("hidden", "true"); appConfig.toolbar.viewBookmark.setAttribute("hidden", "true");
appConfig.secondaryToolbar.viewBookmarkButton.setAttribute("hidden", "true"); appConfig.secondaryToolbar.viewBookmarkButton.setAttribute("hidden", "true");
appConfig.toolbar.download.setAttribute("hidden", "true");
appConfig.secondaryToolbar.downloadButton.setAttribute("hidden", "true");
}; };
} }


Loading…
Cancel
Save