![]() tStoreProperties(DocumentFamily.TEXT, Collections. OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager) ĭocumentFormat w2003xml = new DocumentFormat("Microsoft Word 2003 XML", "xml", "text/xml") Then copy below VBA code into the Module window. Press the Alt + F11 key to open the Microsoft Visual Basic for Applications window. Private static void transformBinaryWordDocToW2003Xml(File in, File out) doc format documents you will convert to. OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager) ĭocumentFormat docx = converter.getFormatRegistry().getFormatByExtension("docx") ĭocx.setStoreProperties(DocumentFamily.TEXT,Ĭollections.singletonMap("FilterName", "MS Word 2007 XML")) To get JOD to do the job you need to do something like private static void transformBinaryWordDocToDocX(File in, File out) JODConvertor is no longer supported, according to the google code web site for v3. I have some art in one of my docs, and it doesn't convert them as I hoped. But it only does as good a job as whatever version of OpenOffice you are running. It can therefore 'do anything you can do in OpenOffice'. JODConvertor calls OpenOffice/LibreOffice via a network protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |