We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Outline number and heading


We use Aspose.words for Java (3.3) to convert a Word
document to an HTML document, and then extract items from the HTML document by looking for headings and contents.

We want to to tell if a text in a heading is an outline number or a part of the heading text, but haven’t found a reliable way to do. The outline number could be like “1.1” or “III”.

For example:

1.1.1 Heading text

is converted to


1.1.1
Heading text



Is there any way to have an indication of whether a text in a heading is an outline number or part of the heading text when saving a document as an HTML file?

Thanks.

Hello<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I'm afraid there is no way to indicate outline numbers of heading paragraph inside output HTML. But you can try retrieving first between

elements to get the numbers.

Also, please follow the link to learn details about how Aspose.Words saves document in the HTML/XHTML and MHTML formats:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/save-in-the-html-format.html

Best regards,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I think, it would be better to extract this information directly from MS Word document before converting it to HTML.

Best regards,