Free Support Forum - aspose.com

Axis, data and legend labels in chart are missing/wrong/in different colors in PDF converted from DOCX

Hi,

When converting a DOCX with a chart to PDF. I noticed many labels are wrong in the PDF, including axis, data and legend labels.

Code:
var doc = new Document(@".\test2.docx");
doc.Save(@".\test2.pdf");

I’ve attached the test files and a screenshot for your reference. Could you please help to take a look?

test2.zip (5.1 MB)
image.png (40.8 KB)

Thanks,

@ServerSide527,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19469. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

@ServerSide527,

During investigation we have found that there are actually following three issues:

  • Incorrect position of the series data labels. We have integrated the fix of this issue in Aspose.Words for .NET 20.2 release. So, please upgrade to the latest version for this fix.
  • Colors settings for series and axis data labels are not taking into account. We have implemented a fix and currently we are reviewing the changes made in the scope of WORDSNET-19469.
  • Incorrect size of the legend marker. We have logged a separate issue WORDSNET-19989 to address this problem. Your thread has been linked to this new issue and you will be notified as soon as the linked issues will be resolved in future.