HI,
I'm facing problems with OutOfMemoryError while converting docx to html.
I'm using Java application:
package test;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import org.docx4j.Docx4J;
import org.docx4j.Docx4jProperties;
import org.docx4j.convert.out.HTMLSettings;
import org.docx4j.openpackaging.exceptions.Docx4JException;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
public class TestDocxConverter {
public static void main(String args) throws Exception{
String inputfilepath = "C:\\dokumenty testowe\\Portal Agenta - Instrukcja użytkownika_v 3.0pop.docx";
WordprocessingMLPackage wordMLPackage;
wordMLPackage = Docx4J.load(new java.io.File(inputfilepath));
HTMLSettings htmlSettings = Docx4J.createHTMLSettings();
htmlSettings.setImageDirPath("C:\\dokumenty testowe" + "\\media");
htmlSettings.setImageTargetUri("C:\\dokumenty testowe" + "\\media");
htmlSettings.setWmlPackage(wordMLPackage);
OutputStream os, os2;
//os ...