Ask Your Question

arvind.purohit's profile - activity

2014-07-25 21:08:26 +0200 received badge  Famous Question (source)
2014-06-21 15:55:40 +0200 received badge  Notable Question (source)
2014-06-21 11:59:10 +0200 received badge  Popular Question (source)
2014-06-20 13:50:27 +0200 received badge  Editor (source)
2014-06-20 13:48:38 +0200 asked a question Docx to PDF is not able to convert chart, shapes

Hi Experts,

I am trying to convert docx to PDF. Everything works fine if docx doesn't have chart. If i insert chart or shapes then those chart and shape is not coming in PDF.

I am adding the chart in docx via Insert > Object > Chart... and then using these commands to convert to PDF:

    File inputFile = new File("D:\\Arvind\\FilesToConnvert\\Doc_1.docx");
    File outputFile = new File("D:/Arvind/FilesToConnvert/Doc1.pdf");

    // connect to an instance running on port 8100
    OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);

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

    // close the connection