I need to rotate the text while exporting to pdf. The same this is working fine in the html page. The css to rotate the text is not working as expected. Please help...

  • 1
    Can you provide your code please ?
    – SF_user
    Oct 10, 2014 at 13:02
  • Please find the code: #rot { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); } Oct 10, 2014 at 13:32

1 Answer 1


Salesforce's current PDF generation is commonly assumed to be based on Flying Saucer which only claims to support CSS 2.1 and rotate is part of CSS 3. Not all styling that works in your browser will work in the PDF output.

There is mention of a future improved PDF renderer in one of the answers to word-wrap not working with VisualForce PDF generation?. So perhaps in a future Salesforce release the PDF rendering will be more capable.

  • 1
    Without providing any specifics, there's also mention of improvements to rendering PDFs in the Winter 15 release notes.
    – crmprogdev
    Oct 11, 2014 at 5:55
  • as if this function thus far is still not in work!
    – Leisure
    Aug 17, 2016 at 2:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .