如何使用手机查看器

问题描述 投票:0回答:0

pdf.js nuget包中是否包含离线pdf查看器,只需传递pdf文件的地址即可使用?我不希望 IFRAME 使用在线查看器,设备将离线连接到本地服务器,并在其中显示 pdf 文件。 我在文档中发现了一个手机查看器,有什么办法可以使用吗?

https://github.com/mozilla/pdf.js/tree/master/examples/mobile-viewer

我需要传递pdf地址,设备从本地服务器下载pdf,将其渲染为html并将其显示在应用程序中的终端设备上。 我尝试过使用基本的 pdf.js,但不知何故,我似乎无法在不消耗设备上太多 RAM 的情况下连续显示所有 pdf 页面。甚至文档也不推荐这样做

https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#i-want-to-render-all-100-pages-in-a-document-at-a-high-分辨率是个好主意

我需要传递pdf地址,设备从本地服务器下载pdf,将其渲染为html并将其显示在应用程序中的终端设备上。 我尝试过使用基本的 pdf.js,但不知何故,我似乎无法在不消耗设备上太多 RAM 的情况下连续显示所有 pdf 页面。甚至文档也不推荐这样做

https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#i-want-to-render-all-100-pages-in-a-document-at-a-high-分辨率是个好主意

pdf.js
© www.soinside.com 2019 - 2024. All rights reserved.