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
560 stars 88 forks source link

Is it possible to get rid of the associated style-class called html-tagname #168

Closed Hibrix-net closed 1 year ago

Hibrix-net commented 1 year ago

Hello,

I created a complex table layout and I see every single element including stuff like that: "style": ["html-td", "html-tr", "html-tbody", "html-table"]

Is it possible to avoid those classes to be included and simply include the ones I define in the html?

Many thanks,

Aymkdn commented 1 year ago

Right now, no it's not possible. But tomorrow I can add an option for that.

Hibrix-net commented 1 year ago

Right now, no it's not possible. But tomorrow I can add an option for that.

Amazing. Many thanks for the super quick answer + solution.

Aymkdn commented 1 year ago

I just released v2.4.16. You can now pass the option removeTagClasses:true to not include these classes in the output.

Hibrix-net commented 1 year ago

I just released v2.4.16. You can now pass the option removeTagClasses:true to not include these classes in the output.

Many thanks.