openoffice.org - open office crashes after some time giving garbled font in converted PDF -


we converting word pdf using openoffice(3.4.1 version) in java jodconverter.

below 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 after random no of days converted pdf contains garbled fonts. # # ! $ $ " % & solution have far restart server. system guys saying the problem open office. using open office convert document since converts doc files including formatting , table structure. solution this.

so openoffice can little temperamental when running on server, isn't multi-threaded , end having run pool of openoffice processes - see how can use openoffice in server mode multithreaded service?.

added rendering off when converting pdf - see https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=68865 why may want consider using conversion service automate conversion tasks ?

for complete transparency work zamzar (an online file conversion service), have released developer api - https://developers.zamzar.com/ allows convert between multitude of file types, applicable here in support both doc , docx pdf little or not loss in way pdf rendered. maybe worth see if better alternative trying run own solution through openoffice on server.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -