Page 1 of 1

docx paragraph indentation

PostPosted: Fri May 01, 2015 2:45 am
by dellh2o
Hello,

I'm using docx4j 2.8.1.10 and I've created a docx file starting from an xhtml; this xhtml has a sequence of tags h1 and h2 which in docx are stored as

1 This is a Title 1 level and it is reported in this wrong
style.

1.1 This is a Title 2 level and it is report in this wrong
style.

I need to have the docx with the following layout

1 This is a Title 1 level and it is reported in this correct
style.

1.1 This is a Title 2 level and it is report in this correct
style.

Do you know if there is a setting or a command which allows to have the second layout ?

Thanks in advance and best regard.

Re: docx paragraph indentation

PostPosted: Fri May 01, 2015 9:50 am
by jason
Version 3.0.0 (the first release of the XHTML Import stuff as a separate project) of 26 Nov 2013 included
conversion of CSS class to existing matching Word style (FormattingOption enum: CLASS_TO_STYLE_ONLY, CLASS_PLUS_OTHER, IGNORE_CLASS).

Version 3.2.0 of 26 August 2014 included support for applying Word heading styles to heading (h1, h2, h3..) elements