Ask Your Question

Docx to PDF is not able to convert chart, shapes [closed]

asked 2014-06-20 13:48:38 +0200

arvind.purohit gravatar image

updated 2014-06-21 02:44:23 +0200

oweng gravatar image

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
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-26 00:12:10.568054

1 Answer

Sort by » oldest newest most voted

answered 2014-06-22 13:19:10 +0200

m.a.riosv gravatar image

Have you tried opening the file and verify export to pdf works fine?. I think the last selected options are used in convert.

Menu/Tools/Options/LibreOffice writer/Print

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-06-20 13:48:38 +0200

Seen: 309 times

Last updated: Jun 22 '14