Page 1 of 1

Headings in HTML output

PostPosted: Fri Jul 11, 2014 8:21 pm
by petr
Hi,
I am using the code from ConvertOutHtml.java, which outputs headings as styled paragraphs. I've tried to look in the forum and the source code for a solution, but couldn't find anything simple. What would be an easy way to get h1, h2, etc markup in the exported HTML?
Many thanks for pointers
Petr

Re: Headings in HTML output

PostPosted: Mon Aug 04, 2014 8:08 pm
by jason
There is support for mapping eg h1 to "Heading 1" style, in the 3.2.0 beta.

To enable it, you'll need a properties file with the content:

https://github.com/plutext/docx4j-Impor ... properties