简体   繁体   English

HTMl,CSS,引导到 pdf 使用 Z686155AF75A60A0F6EZD80E1

[英]HTMl, CSS, Bootstrap to pdf using JavaScript

I used many javaScript library but CSS is not rendering properly.我使用了许多 javaScript 库,但 CSS 无法正确渲染。

Is it possible to create pdf like print pdf option in browser.是否可以在浏览器中创建 pdf 之类的打印 pdf 选项。

As you encountered, you can only turn to pdf raw html.如你所见,只能转向pdf raw html。 For turning to pdf your exact same page you will require a more server-side application like wkhtmltopdf .要转到 pdf 您完全相同的页面,您将需要更多的服务器端应用程序,例如wkhtmltopdf

With wkhtmltopdf already installed in your system, you will be able to render a full website into pdf with this simple command.在您的系统中安装了 wkhtmltopdf 后,您将能够使用这个简单的命令将完整的网站呈现到 pdf 中。 For example google webpage wkhtmltopdf http://google.com google.pdf You can also do it with a local file doing wkhtmltopdf path_to_html_file output_pdf_name.pdf. For example google webpage wkhtmltopdf http://google.com google.pdf You can also do it with a local file doing wkhtmltopdf path_to_html_file output_pdf_name.pdf. Hope this helps you希望这可以帮助你

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

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