DocIO - Convert Word Document with charts to PDF

Hello, I have a word document with charts and a requirement to produce a PDF. The project is .net 4.6 version.
I am using your code snippet, but the charts are not displayed correctly in pdf. What am I missing? Thank you!
using Syncfusion.DocIO;
using Syncfusion.DocIO.DLS;
using Syncfusion.OfficeChart;
using Syncfusion.DocToPDFConverter;
using Syncfusion.OfficeChartToImageConverter;
using Syncfusion.Pdf;
WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx);
wordDocument.ChartToImageConverter = new ChartToImageConverter();
DocToPDFConverter converter = new DocToPDFConverter();
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
pdfDocument.Save("WordtoPDF.pdf");
pdfDocument.Close(true);
wordDocument.Close();



6 Replies

MJ Mohanaselvam Jothi Syncfusion Team June 13, 2018 12:25 PM UTC

Hi Natalia,

Thank you for contacting Syncfusion support.

We suspect that the reported chart preservation problem is raised due to the contents and chart preserved in the input Word document. We need to investigate with the chart and their properties in the input Word document. So, could you please provide us the input Word document which used at your end. Thereby, we will analyze further on the reported problem and provide you the appropriate solution at faster.

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.

Please let us know if you have any other questions

Regards,
Mohanaselvam J




PG Pon Geetha A J Syncfusion Team June 14, 2018 04:31 AM UTC

Hello, here is the report sample I am trying to convert to PDF. This document was created with Syncfusion DocIO. 
 
Thank you. 
  
  

ExecutiveSummary_LOUISIANA_2018



NG Natalia Gnammakou June 15, 2018 01:45 PM UTC

Hello, here is the file I am trying to convert to PDF.

Thank you!

Attachment: WordWithCharts_ad495037.zip


NG Natalia Gnammakou June 18, 2018 02:55 PM UTC

Hello,
 I was just wondering if you have any updates for this question? I still have issues converting Word with charts to PDF.

Thank you!


MJ Mohanaselvam Jothi Syncfusion Team June 20, 2018 06:18 AM UTC

Hi Natalia,

We are can reproduce the mentioned chart preservation issue when converting the given Word document into PDF and the fix for the issue will be included in our 2018 Volume 2 Service Pack 1, which is expected to be available on end of July 2018 tentatively.

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



DB Dilli Babu Nandha Gopal Syncfusion Team January 9, 2019 06:23 PM UTC

Hi Natalia 

We have fixed the reported issue and included in our 2018 Volume 2 Service Pack 1 release. We are glad to announce that our Essential Studio Volume 4, 2018 release (v16.4.0.42) is rolled out and is available for download under the following link. 

  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

Regards, 
Dilli babu. 


Loader.
Up arrow icon