import java.io.FileInputStream;

import org.docx4j.convert.in.Doc;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;


public class DocToPDFConverter extends DocxToPDFConverter {

	public DocToPDFConverter(String inputFilePath, String outputFilePath) {
		super(inputFilePath, outputFilePath);
	}

	@Override
	protected WordprocessingMLPackage getMLPackage(FileInputStream iStream) throws Exception{
	    WordprocessingMLPackage mlPackage = Doc.convert(iStream);
		return mlPackage;
	}
	
	
}

@@ -24,16 +24,73 @@
 tStream;
+%0Aimport java.io.OutputStream;%0Aimport java.io.PrintStream;
 %0A%0Aimport
@@ -470,12 +470,237 @@
 n%7B%0A%09
-    
+%09PrintStream originalStdout = System.out;%0A%09%09%0A%09%09//Disable stdout temporarily as Doc convert produces alot of output%0A%09%09System.setOut(new PrintStream(new OutputStream() %7B%0A%09%09%09public void write(int b) %7B%0A%09%09%09%09//DO NOTHING%0A%09%09%09%7D%0A%09%09%7D));%0A%09%09
 Word
@@ -753,16 +753,52 @@
 tream);%0A
+%09%09%0A%09%09System.setOut(originalStdout);%0A
 %09%09return

Disable stdout when convert doc to docx