dokuwiki-plugin-dw2pdf icon indicating copy to clipboard operation
dokuwiki-plugin-dw2pdf copied to clipboard

Solved: Table vertical cell alignment differs from DokuWiki

Open bomhard opened this issue 5 years ago • 2 comments

Great Plugin, thanks a lot. But we found one issue:

Tables with multiple lines are rendered with vertical-top-alignment which makes sense in most cases. In the pdfs however vertical alignment is centered which can be really more than a cosmetic flaw with larger multi-line tables.

Best NIkolaus

bomhard avatar Jun 26 '20 07:06 bomhard

The pdf creation is performed by the mpdf library. Unfortunately the library doesn't support all details of css. So it could be that alignment is not support in the way you need. e.g. sometimes inline css solves it. The plugin has some option to observe which html and css is going into it. And in the manual you have some explaination e.g. https://mpdf.github.io/css-stylesheets/supported-css.html

Klap-in avatar Jun 26 '20 10:06 Klap-in

Thanks a lot. Creating DWDIR/lib/plugins/dw2pdf/conf/style.local.css with:

table { vertical-align: top; }

solved the issue. Should be part of the default style.css to match rendering.

bomhard avatar Jun 29 '20 14:06 bomhard