【问题标题】:ng2-pdfjs-viewer print function prints the entire html page rather than the embedded pdf document within the viewerng2-pdfjs-viewer 打印功能打印整个 html 页面,而不是查看器中嵌入的 pdf 文档
【发布时间】:2020-02-14 01:36:40
【问题描述】:

我正在使用 ng2-pdfjs-viewer 扩展在页面中嵌入 pdf 文档,以便我可以打印该文档。它在浏览器上运行良好。但是,它会尝试在 android 和 ios 设备上打印整个 html 页面。我正在使用 .Net Core 的 Angular 5.2.0。

这里是html标签:

<ng2-pdfjs-viewer #pdfViewerOnDemand
                  [pdfSrc]="pdfDoc"
                  [downloadFileName]="'pdfDoc.pdf'"
                  [download]="true"
                  [print]="true">
</ng2-pdfjs-viewer>

【问题讨论】:

    标签: .net angular typescript


    【解决方案1】:

    显然这是一个错误,之前似乎无法在移动设备上运行。我在github上开了一个issue给近期遇到这个问题的人:https://github.com/intbot/ng2-pdfjs-viewer/issues/76

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-01
      • 2021-04-07
      • 2016-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多