Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html to PDF with webkit transform

Tags:

html

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?

like image 258
Hasan Avatar asked Oct 03 '10 10:10

Hasan


2 Answers

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
like image 175
lepe Avatar answered Oct 02 '22 14:10

lepe


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.

like image 43
Winnovative Avatar answered Oct 02 '22 13:10

Winnovative