Aymkdn / html-to-pdfmake

This module permits to convert HTML to the PDFMake format
https://aymkdn.github.io/html-to-pdfmake/index.html
MIT License
545 stars 88 forks source link

Support for RTL languages #188

Closed alirezasoleimaniasl closed 1 year ago

alirezasoleimaniasl commented 1 year ago

Hey bro. I was Excited about your project. I was playing with your playground and added style="direction:rtl" to the main div, HTML browser showed a rtl, but in generating pdf, it generates a rtl pdf. any idea?

Aymkdn commented 1 year ago

Hey.

This project converts the HTML code to a PDFMake format.

I checked PDFMake, and it seems RTL is not supported, as described in this issue: https://github.com/bpampuch/pdfmake/issues/184

Someone recently tried to add this feature, but it didn't work: https://github.com/bpampuch/pdfmake/pull/2592

So, because this is not supported in PDFMake, then it cannot be supported here…