tianchiing / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Html Conversion failse #481

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Copy the following code to convert odt to html
public static void main(String[] arg) throws Exception {
        OdfTextDocument document = OdfTextDocument.loadDocument("filename.odt");
        File outFile = new File("filename.html");

        OutputStream out = new FileOutputStream(outFile);
        XHTMLConverter.getInstance().convert(document, out, null);
    }
3. You get following bug:
at 
org.odftoolkit.odfdom.converter.internal.xhtml.ElementVisitorForXHTML.processTex
tNode(ElementVisitorForXHTML.java:604)
    at org.odftoolkit.odfdom.converter.core.ElementVisitorConverter.visit(ElementVisitorConverter.java:85)
    at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:2541)
    at org.odftoolkit.odfdom.converter.internal.xhtml.ElementVisitorForXHTML.visit(ElementVisitorForXHTML.java:107)
    at org.odftoolkit.odfdom.dom.element.office.OfficeMasterStylesElement.accept(OfficeMasterStylesElement.java:109)
    at org.odftoolkit.odfdom.converter.xhtml.XHTMLConverter.doConvert(XHTMLConverter.java:96)

What is the expected output? What do you see instead?
The expected html should have been generated

What version of the product are you using? On what operating system?
I am using 1.0.0 on windows 7 PC

Please provide any additional information below.

Original issue reported on code.google.com by mayank.p...@gmail.com on 26 May 2015 at 6:07

GoogleCodeExporter commented 8 years ago
Forgot to attach file

Original comment by mayank.p...@gmail.com on 26 May 2015 at 6:15

Attachments: