lmkatribe.blogg.se

Openoffice pdf operation timed out
Openoffice pdf operation timed out





("Connessione aperta! Provo la conversione") ĭocumentConverter converter = new OpenOfficeDocumentConverter(connection) Ĭnvert(inputFile, outputFile) New SocketOpenOfficeConnection(openOfficePort) ("OpenOffice lanciato, provo la connessione alla porta " Process p = Runtime.getRuntime().exec(command) + openOfficePort + " urp \" -nofirststartwizard" "-headless -accept=\"socket,host=localhost,port=" String command = "\"C:/Program Files (x86)/OpenOffice 4/program/soffice.exe\"" + ("Provo a lanciare il processo di OpenOffice") Public static void main(String args) throws IOExceptionįile inputFile = new File("C:/Prova/Esempi/TestSign.rtf") įile outputFile = new File("C:/Prova/Esempi/TestSign.pdf")

openoffice pdf operation timed out

Import .converter.OpenOfficeDocumentConverter Import .connection.SocketOpenOfficeConnection

openoffice pdf operation timed out openoffice pdf operation timed out

This is my test class import java.io.File I get the Exception at every first conversion after the start of the computer. It works all fine except for one strange issue, the first time when I try a conversion I get a Connection refused exception it start to work from the second time. I'm using JODConverter to connect to OpenOffice 4 and convert rtf documents to pdf.







Openoffice pdf operation timed out