marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Problems with styles in html table (transform rotate) #519

Open elfanticos opened 5 years ago

elfanticos commented 5 years ago

How about everyone, I'm doing a report of notes and I ran into a problem when I wanted to place vertical cells in the header, probe in stackblitz and it works normally but when I add it to my template to download the pdf it does not recognize the styles correctly , can you help me in that I'm failing thank you very much for the help

I leave my code of stackblitz https://stackblitz.com/edit/js-ycbxe5?file=index.html

when downloading it generates this pdf https://s3.amazonaws.com/smiledu.smiledu-test/pdf_0z633zpfij98.pdf

davemecha commented 3 years ago

I use node-html-pdf to generate pdf in a firebase function with node 14. Transform was not working as expected for me using transform: rotate(90deg).

I found out, that transform is working correctly when using a webkit prefix.

.rotate {
  -webkit-transform: rotate(90deg);
}