# Some common types are e.g.: "Check", "Text", "Comment", "Note"
text_annotation_type=[{{type}} Annotation]
request_password=PDF is protected by a password:
+
+printing_not_supported=Warning: Printing is not supported by this browser.
<span data-l10n-id="open_file_label">Open</span>
</button>
- <!--
<button id="print" class="toolbarButton print" title="Print" tabindex="11" data-l10n-id="print" onclick="window.print()">
<span data-l10n-id="print_label">Print</span>
</button>
- -->
<button id="download" class="toolbarButton download" title="Download" onclick="PDFView.download();" tabindex="12" data-l10n-id="download">
<span data-l10n-id="download_label">Download</span>
beforePrint: function pdfViewSetupBeforePrint() {
if (!this.supportsPrinting) {
- alert('Printing is not supported by this browser.');
+ var printMessage = mozL10n.get('printing_not_supported', null,
+ 'Warning: Printing is not supported by this browser.');
+ alert(printMessage);
return;
}
for (var i = 0, ii = this.pages.length; i < ii; ++i) {
document.querySelector('#viewSearch').classList.remove('hidden');
}
+ if (!PDFView.supportsPrinting) {
+ document.getElementById('print').classList.add('hidden');
+ }
+
// Listen for warnings to trigger the fallback UI. Errors should be caught
// and call PDFView.error() so we don't need to listen for those.
PDFJS.LogManager.addLogger({