简体   繁体   English

尝试使用wkhtmltopdf将html文件转换为pdf

[英]Trying to convert an html file to pdf using wkhtmltopdf

I want to use wkhtmltopdf to convert an html file to pdf. 我想使用wkhtmltopdf将html文件转换为pdf。 I was trying with various options with the wkhtmltopdf but its not giving the proper output what i wanted. 我正在尝试使用wkhtmltopdf的各种选项,但它没有给出我想要的正确输出。 I want to have the pdf with the same format as looking by saving it using control+p The url is http://raindrops.in/subhashini/view/524e5aa14251df44518b4567 我希望通过使用control + p保存它的pdf格式相同。网址是http://raindrops.in/subhashini/view/524e5aa14251df44518b4567

Please help me out how to use it. 请帮我解决一下如何使用它。

If the problem is that you don't have the layout you're looking for, it is probably because you don't use wkhtmltopdf with the correct settings as far as screen size, margins etc. is concerned. 如果问题是你没有你正在寻找的布局,可能是因为你没有使用wkhtmltopdf和屏幕大小,边距等有关的正确设置。

Check the available options here http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html 查看可用选项http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html

Check your own screen settings (width/height), and use them in wkhtmltopdf. 检查您自己的屏幕设置(宽度/高度),并在wkhtmltopdf中使用它们。

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

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