Html2PdfConverter ignoriert <style>-Tag

Hallo Gustav,

der HTML2PDF Step unterstützt leider den Tag oder externe CSS Dateien nicht. Es sind nur einige inline Styles möglich, siehe auch:

Vielleicht kannst du als Workaround Freemarker verwenden, um die Styles zu definieren, z.B.:

<html>
<body>
<#assign tableStyle = 'style="border: 10px solid black;width: 100%;border-collapse: collapse;"' >
<#assign thStyle = 'style="border: 1px solid black;width: 80%;background-color:#daedf4;border-bottom: 2px solid black;"' >
<#assign tdStyle = 'style="border: 1px solid black;width: 50%;border-bottom: 2px solid black;"' >
<table ${tableStyle!}>
<tr >
<th ${thStyle!}>Supplier:</th>
<td ${tdStyle!}>SLV Gmbh</td>
</tr>
<tr>
<th colspan="2" ${thStyle!}>Product parameter:</th>
</tr>
</table>
</body>
</html>

Das ist nicht ganz so komfortabel wie im style Tag, aber vermutlich einfacher als alles in Inline -Styles zu packen

VG Torsten