Wkhtmltopdf: wkhtmltoimage not able to convert css3 transform rotate property from firefox

Created on 8 Jul 2014  路  3Comments  路  Source: wkhtmltopdf/wkhtmltopdf

I am creating a wordcloud by http://timdream.org/wordcloud2.js
After converting the rendered html to png with wkhtmltoimage, the image losts its word rotations

Browser : MozillaFirefox and IE

The same things works fine on google chrome

HTML before conversion

html_before_conversion

Image after conversion

image_after_conversion

Documentation

Most helpful comment

Try using -webkit-transform: rotate(2deg) along with -webkit-backface-visibility: hidden as per this answer

All 3 comments

Try using -webkit-transform: rotate(2deg) along with -webkit-backface-visibility: hidden as per this answer

The problem here is the html is generated by external js and every css is inline. So it is not possible to modify css attributes or add new attributes.

Also webkit prefix works for chrome and the problem is in firefox.

So file an issue with the external JS library or modify it yourself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charlieegan3 picture charlieegan3  路  3Comments

prasadsurase picture prasadsurase  路  4Comments

pyTex picture pyTex  路  3Comments

shameemz picture shameemz  路  3Comments

jrm2k6 picture jrm2k6  路  4Comments