- Timestamp:
- 02/23/10 06:32:26 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/samples/CreateHtml.java
r1044 r1078 21 21 package org.docx4j.samples; 22 22 23 import java.io.FileInputStream;24 23 import java.io.OutputStream; 25 26 import javax.xml.bind.JAXBContext;27 import javax.xml.bind.JAXBElement;28 import javax.xml.bind.Unmarshaller;29 24 30 25 import org.docx4j.convert.out.html.AbstractHtmlExporter; 31 26 import org.docx4j.convert.out.html.HtmlExporter; 32 import org.docx4j.convert.out.html.HtmlExporterNG;33 27 import org.docx4j.convert.out.html.HtmlExporterNG2; 34 import org.docx4j.jaxb.Context;35 28 import org.docx4j.openpackaging.packages.WordprocessingMLPackage; 36 import org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart;37 29 30 /** 31 * If the source docx contained a WMF, that 32 * will get converted to inline SVG. In order 33 * to see the SVG in your browser, you'll need 34 * to rename the file to .xml or serve 35 * it with MIME type application/xhtml+xml 36 * 37 */ 38 38 public class CreateHtml { 39 39 … … 44 44 boolean useHtmlExporterNG = true; 45 45 46 String inputfilepath = System.getProperty("user.dir") + "/tmp/wmf.docx"; 47 46 48 // String inputfilepath = System.getProperty("user.dir") + "/sample-docs/sample-docx.xml"; 47 String inputfilepath = System.getProperty("user.dir") + "/docs/Docx4j_GettingStarted.xml";49 // String inputfilepath = System.getProperty("user.dir") + "/docs/Docx4j_GettingStarted.xml"; 48 50 // String inputfilepath = System.getProperty("user.dir") 49 51 // + "/sample-docs/test-docs/endnotes.xml";
Note: See TracChangeset
for help on using the changeset viewer.
