使用webkit转换Html到PDF [英] Html to PDF with webkit transform

查看:330
本文介绍了使用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

这篇关于使用webkit转换Html到PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆