We are converting word to pdf using the openoffice(3.4.1 version) in java with JODConverter.
below is the code used.
OpenOfficeConnection connection = new SocketOpenOfficeConnection(2100); try { connection.connect();
DocumentConverter converter =
new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
connection.disconnect();
return "Sucess " + DestinationPath + DestinationFileName;
}
catch (Exception localException1) {
}
The problem is that after random no of days the converted PDF contains the garbled fonts. like # # ! $ $ " % & The only solution we have so far is to restart the server. System guys are saying the the problem is with Open Office. We are using open office to convert the document since it converts the doc files exactly including all the formatting and table structure. what could be the solution to this.