We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在手机端展示PDF是移动开发者的一大痛点
目前在PC端展示PDF有较多的解决方案,比如:
<embed type="application/pdf" src="test.pdf" width="100%" height="100%"/>
这里不再赘述使用方法,网上一大堆
那么在手机端展示pdf就成了一个难题,尤其是在微信上(兼容性无力吐槽),经过一番研究,在GitHub上发现了pdf2htmlEX这个神器!
GitHub链接先来一发:https://github.com/coolwanglu/pdf2htmlEX
Demo再来一发,注意url,是xxx.html! http://coolwanglu.github.io/pdf2htmlEX/demo/geneve.html
ok,相信你看了Demo基本已经被它的显示效果惊呆了,下面我们来看一下它的使用吧:
官方文档:https://github.com/coolwanglu/pdf2htmlEX/wiki/Building
Mac OS X可以使用brew来安装
brew install pdf2htmlEX
Windows在以上链接最底部有下载链接。
官方文档:https://github.com/coolwanglu/pdf2htmlEX/wiki/Quick-Start
安装好pdf2htmlEX后,使用命令行切换到pdf文件目录。
这里简单介绍几个命令:
pdf2htmlEX --zoom 1.3 pdf/test.pdf
pdf2htmlEX --embed cfijo --dest-dir out pdf/test.pdf
除了以上的命令以外,还有很多实用方式,比如截取片段转换、修改像素等,这里不再赘述,感兴趣的可以去官网查看。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前在PC端展示PDF有较多的解决方案,比如:
PC端
embed标签
pdf.js
这里不再赘述使用方法,网上一大堆
那么在手机端展示pdf就成了一个难题,尤其是在微信上(兼容性无力吐槽),经过一番研究,在GitHub上发现了pdf2htmlEX这个神器!
移动端
pdf2htmlEX
GitHub链接先来一发:https://github.com/coolwanglu/pdf2htmlEX
Demo再来一发,注意url,是xxx.html! http://coolwanglu.github.io/pdf2htmlEX/demo/geneve.html
ok,相信你看了Demo基本已经被它的显示效果惊呆了,下面我们来看一下它的使用吧:
安装
官方文档:https://github.com/coolwanglu/pdf2htmlEX/wiki/Building
Mac OS X可以使用brew来安装
Windows在以上链接最底部有下载链接。
使用
官方文档:https://github.com/coolwanglu/pdf2htmlEX/wiki/Quick-Start
安装好pdf2htmlEX后,使用命令行切换到pdf文件目录。
这里简单介绍几个命令:
全部转换为HTML
全部转换为目录(HTML,CSS,IMGS,FONTS)
除了以上的命令以外,还有很多实用方式,比如截取片段转换、修改像素等,这里不再赘述,感兴趣的可以去官网查看。
The text was updated successfully, but these errors were encountered: