Could you help me?
I can’ t open docx on MS Office(2016), but can open it on LibreOffice.
The docx file is converted from pdf on LibreOffice(7.5.5), and I’ve used java org.libreoffice version 7.5.3,
I’ve used the program DocumentConverter.java to convert it. (from /api.libreoffice.org/examples/java/DocumentHandling/)
DocumentConverter.java: only two points were changed like this:
(1) line No: 126
propertyValues[1] = new com.sun.star.beans.PropertyValue();
propertyValues[1].Name = “FilterName”;
propertyValues[1].Value = “writer_pdf_Export”
(2) line No: 137
xStorable.storeAsURL() → xStorable.storeToURL()
I will attach two data files (conversion input: pdf , output: docx).
Thanks in advance.
TEST_DOC.pdf (53.2 KB)
TEST_DOC.docx (31.6 KB)