Sample Header Ad - 728x90

Is there a tool that preserves CSS formatting during HTML to PDF conversion?

0 votes
1 answer
1276 views
I tried the options in https://unix.stackexchange.com/questions/662801/is-there-a-script-or-tool-that-converts-html-to-pdf with command: pandoc documentation.html -o test.pdf --pdf-engine=xelatex but unfortunately they do not preserve the CSS formatting. For example I have this document that looks like this : enter image description here --- but the resulting pdf output looks plain like this without css formatting. Notice that the header with blue background is gone and all the other formatted texts no background css. enter image description here
Asked by Harry McKenzie (137 rep)
Apr 11, 2024, 06:56 AM
Last activity: Apr 11, 2024, 09:42 AM