nickrussler / email-to-pdf-converter

Converts email files (eml, msg) to pdf
https://www.whitebyte.info/publications/eml-to-pdf-converter
Apache License 2.0
281 stars 65 forks source link

Merge header without javascript #43

Closed THausherr closed 5 months ago

THausherr commented 2 years ago

This tool really works nicely, but it relies on wkhtmltopdf having to interprete javascript which is obviously dangerous. I'm wondering whether it would be possible to load, manipulate and save the HTML in java to include the header fields table, which is currently done by the small script attached to the end of the HTML file. Or is this impossible because of the height?

nickrussler commented 5 months ago

Would love to ditch the JS, but would require an alternative solution regarding the height yes.