使用jodconvertor将文档转换为pdf时出现连接拒绝错误

时间:2018-07-20 09:34:21

标签: java openoffice.org

我收到以下代码的错误连接被拒绝

             OpenOfficeConnection connection = new SocketOpenOfficeConnection(openOfficeServerPort);
              try
              {
                connection.connect();

                 DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
                 converter.convert(inputFile, outputFile);

                connection.disconnect();
                 return "Sucess  " + DestinationPath + DestinationFileName;
               }
               catch (Exception localException1) {
                    return "failed in connection.connect()"+localException1;
               }

0 个答案:

没有答案