简体   繁体   English

在我的页面中使用javascript和css文件添加“导出为pdf”

[英]Add “export as pdf” in my page with javascript and css file

I want to add to my site for each article an "export as pdf" button, which the style I want to get from my print stylesheet file. 我想为每篇文章添加一个“导出为pdf”按钮,该样式是我想从打印样式表文件中获取的样式。

Which javascript library (or any other solution) I can use? 我可以使用哪个JavaScript库(或任何其他解决方案)?

I use in my applications mPDF. 我在我的应用程序中使用mPDF。 Its very easy to use. 它非常易于使用。 And they have also a lot of example scripts to show step by step it's possibilities. 他们也有很多示例脚本来逐步展示其可能性。

mPDF PDF文件

It works with PHP, because there is a lot of file manipulation necessary. 它与PHP一起使用,因为有许多必要的文件操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM