zhu915139481 / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

BUG+FIX (win platform) - OfficeUtils , missing win32 executable name of OpenOffice #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
org.artofsolving.jodconverter.util.PlatformUtils.OfficeUtils.java

change from:

 public static File getOfficeExecutable(File officeHome) {
     if (PlatformUtils.isMac()) {
         return new File(officeHome, "MacOS/soffice.bin");
     } else {
         return new File(officeHome, "program/soffice.bin");
     }
 }

to:
 public static File getOfficeExecutable(File officeHome) {
     if (PlatformUtils.isMac()) {
         return new File(officeHome, "MacOS/soffice.bin");
     } else if (PlatformUtils.isWindows() ) {
         return new File(officeHome, "program/soffice.exe");
     } else {
         return new File(officeHome, "program/soffice.bin");
     }
 }

Original issue reported on code.google.com by naar...@gmail.com on 4 Oct 2014 at 7:28