XHTMLImporter and headings
Posted: Tue Mar 11, 2014 9:05 pm
Hallo,
Do you have some hints what properties (or something else) to set to get the headings transformed?
XHTMLImporter is really a great Approach for getting .docx documents out of .xhtml Markup.
I've played around with XHTMLImporter and noted that the tags h1, h2, h3 are rendered as bold text in the word document.
But I would have expected:
h1 .. heading1
h2 .. heading2
h3 .. heading3
Thx in advance for any hint,
Willi
P.S. With this line of code the Heading1 is working in general for the transformed word document
wordMLPackage.getMainDocumentPart().addStyledParagraphOfText("Heading1", "As is Heading1");
Do you have some hints what properties (or something else) to set to get the headings transformed?
XHTMLImporter is really a great Approach for getting .docx documents out of .xhtml Markup.
I've played around with XHTMLImporter and noted that the tags h1, h2, h3 are rendered as bold text in the word document.
But I would have expected:
h1 .. heading1
h2 .. heading2
h3 .. heading3
Thx in advance for any hint,
Willi
P.S. With this line of code the Heading1 is working in general for the transformed word document
wordMLPackage.getMainDocumentPart().addStyledParagraphOfText("Heading1", "As is Heading1");