how to remove table padding when using CLI --convert-to parameter in LibreOffice

Viewed 387

I have a script which generates a HTML document, which is then converted to a .doc file using something like this:

libreoffice5.3 --headless --convert-to doc:"MS Word 97" input.html --outdir outputdir

I cannot set the padding on the table cells. They always end up with 0.5cm space at the bottom.

I have tried adding page-wide CSS such as "td{padding:0cm;}", and tried adding the CSS directly to the elements themselves, and even tried adding "cellpadding=0" to the element.

I remember reading somewhere that it might be possible to apply a predefined style to a document by using a template filter, but I can't seem to find an example of anyone ever doing this.

So, my question: how do I remove cell padding from tables when converting from HTML to Doc in LibreOffice.

1 Answers
Related