使用webkit转换Html到PDF

问题描述:

从Html生成PDF时,webkit转换不起作用。我需要以45度角旋转一个div,使用webkit转换后,它在屏幕上看起来很好,但是使用winnovatives Html to PDF转换器时,输出是平坦的不旋转。任何解决方案?

When producing PDF from Html the webkit transform does not work. I need to rotate a div at 45 angle and after using webkit transform it looks ok on the screen but with winnovatives Html to PDF convertor the out put was flat not rotated. Any solutions?

试试: wkhtmltopdf 它工作得很好。它使用 webkit 引擎,它非常易于使用:

Try: "wkhtmltopdf" it just work great. It uses webkit engine and it is very easy to use:

wkhtmltopdf stackoverflow.com/questions/3849441/ output.pdf

试试吧!对于Linux和Windows也是如此。易于安装。如果您使用ubuntu,请键入:

Try it! for Linux and Windows as well. Easy to install. If you use ubuntu, type:

aptitude install wkhtmltopdf