Page 1 of 1

Generate PDF by OpenOffice, connect very slowly

Posted: Mon Jul 01, 2019 7:39 am
by hellin
Generate pdf file by java source connecting OpenOffice Converter, Connect procedure is very slow。java source as follow on Suse 11,
see attachment.

Code: Select all

import com.artofsolving.jodconverter.DefaultDocumentFormatRegistry;
import com.artofsolving.jodconverter.DocumentFormat;
import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection;
import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection;

...

connection = new SocketOpenOfficeConnection(ipAddr, port.intValue());
connection.connect();

Re: Generate pdf by OpenOffice, connect very slowly. How c

Posted: Mon Jul 01, 2019 7:58 am
by Zizi64
OpenOffice 3.1 on Windows Vista
Are you using that old, osolete version?

Re: Generate pdf by OpenOffice, connect very slowly. How c

Posted: Mon Jul 01, 2019 8:00 am
by hellin
thanks. OpenOffice 4.14, the same problem on Suse 11

Re: Generate pdf by OpenOffice, connect very slowly. How c

Posted: Wed Jul 03, 2019 2:15 pm
by Bidouille
Maybe a JRE issue?

Re: Generate pdf by OpenOffice, connect very slowly. How c

Posted: Wed Jul 03, 2019 3:07 pm
by Villeroy
Why not using a virtual PDF printer? I guess, the source format is some flavour of Microsoft Office. Install the MS Viewers for these file formats and write a batch script to open MS files with MS programs and let them print to a virtual PDF printer. The MS Viewers are no longer downloadable from microsoft.com but I'm sure you will find them somewhere.