6

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Hasan
  • 61
  • 1
  • 3

2 Answers2

6

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
lepe
  • 24,677
  • 9
  • 99
  • 108
  • 2
    it does work great, but it's GPL which means I can't use it in a project I'm working on. Any other good ones? – jwl Aug 30 '11 at 14:30
  • 2
    You can use it. Just don't link against the binary. Call it as an external binary and provide sources for it in case someone demands it. – akira Aug 22 '13 at 20:51
1

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.

Winnovative
  • 118
  • 7