Page 1 of 1

docx to html with centered table looses center formatting

PostPosted: Thu Mar 03, 2016 12:40 pm
by shoelessrob
Hello all,
Trying to use docx4j to convert word documents to html and hit into an issue. If the document contains a table which has been formatted to be centered, the table is rendered correctly, but not centered. Am I missing using some configuration or is this a known limitation?

I have attached the sample docx file which contains a centered line of text followed by a table. Both are centered. The generated html has the text centered, but the table is not.

Any help would be appreciated.

[03/04/2016] UPDATE: Found that this is an open issue: "Output (PDF|HTML) - support table centre or right justified #96" https://github.com/plutext/docx4j/issues/96