开发者

Html to PDF with webkit transform

开发者 https://www.devze.com 2023-01-18 18:20 出处:网络
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

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?


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

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

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

aptitude install wkhtmltopdf


Winnovative HTML to PDF rendering engine is compatible with WebKit (Google Chrome) and you have to use '-webkit-transform: rotate(45deg);' style in CSS to rotate an element.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号