poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Is there any way to display line breacks , order list with using HWPFDocument
Date Mon, 28 May 2012 10:47:43 GMT
On Sun, 27 May 2012, ashish wrote:
> Here I am able to convert the bold and italic text . But not able to
> figure-out that how to create the
> 1) <ul><li>....
> 2) <ol><li>...
> 3) break <br>
> 4) <pre>
> tags into the WordDoc.

I'm not sure, off the top of my head, which ones are possible. As a 
general rule for this sort of HWPF -> HTML stuff, your best bet for places 
to look for examples / inspiration are:
* Apache Tika
    http://svn.apache.org/repos/asf/tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java
* Apache POI - HWPF.Converter package
    http://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter
   (especially WordToHtmlConverter and WordToHtmlUtils)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message