|
@@ -224,11 +224,15 @@ 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>
|
|
|
|
|
|
|
|
|
|
+ <!-- pdf.js自带打印功能,因为使用canvas,打印效果不好,字迹模糊 -->
|
|
|
<button id="print" class="toolbarButton print hiddenMediumView"
|
|
<button id="print" class="toolbarButton print hiddenMediumView"
|
|
|
- title="Print" tabindex="33" data-l10n-id="print">
|
|
|
|
|
|
|
+ title="Print" tabindex="33" data-l10n-id="print" hidden='true'>
|
|
|
<span data-l10n-id="print_label">Print</span>
|
|
<span data-l10n-id="print_label">Print</span>
|
|
|
</button>
|
|
</button>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- 自己实现打印功能 -->
|
|
|
|
|
+ <button id="print2" class="toolbarButton print hiddenMediumView" title="打印" tabindex="33" data-l10n-id="print">
|
|
|
|
|
+ <i class="fa fa-print"></i>
|
|
|
|
|
+ </button>
|
|
|
<button id="download" hidden='true'
|
|
<button id="download" hidden='true'
|
|
|
class="toolbarButton download hiddenMediumView" title="Download"
|
|
class="toolbarButton download hiddenMediumView" title="Download"
|
|
|
tabindex="34" data-l10n-id="download">
|
|
tabindex="34" data-l10n-id="download">
|
|
@@ -525,6 +529,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+<iframe id="hiddenframe" hidden='true'></iframe>
|
|
|
</body>
|
|
</body>
|
|
|
|
|
|
|
|
<script src="static/lib/pdf.js/web/compatibility.js"></script>
|
|
<script src="static/lib/pdf.js/web/compatibility.js"></script>
|