Problem with Piecharts when convertering from docx to pdf with Aspose.Words

Hi, we are having an issue in production where piecharts are converted incorrectly when using 22.3 version of Aspose.Words in .NET. I have attached the following document with the original docx document as well as the converted output PDF document. As you can see, all the color is missing from the piecharts.

Word to PDF problem with (60.4 KB)

I have look at the following post: Size and label issues with charts when converting to PDF
It seems that the issue is slightly different in my case.

I only have the license up to version 22.3 and cannot test with the newest version of Aspose.Words. Is there a problem with piechart conversion in general?

The code:

var document = new Aspose.Words.Document(stream);
var resourceName = "FileConverters.AsposeObjects.hyph_da_DK.dic";
Hyphenation.RegisterDictionary("da-DK", Util.ReadResourceFileAsStream(resourceName));
var saveOptions = new PdfSaveOptions{
   Compliance = PdfCompliance.PdfA1a,
   DisplayDocTitle = true,
   CreateNoteHyperlinks = true,
   CustomPropertiesExport = PdfCustomPropertiesExport.Metadata
memoryStream = new MemoryStream();
document.Save(memoryStream, saveOptions);

It would be great if you could take a look. Thank in advance.

@nnyy10 Thank you for reporting the problem to us. It looks like the problem occurs PdfCompliance.PdfA1a. If use other PdfCompliance the chart looks better, here is document produced with default Pdf17: out.pdf (94.9 KB)
The problem is logged as WORDSNET-24574.

Also, I have noticed incorrect data labs position, this problem has been logged as WORDSNET-24573.

We will keep you informed and let you know one the issues are resolved.

1 Like

Hi Alexey, many thanks for the fast response. We were actually also planning to change the export format fra PdfA1a to PdfUa1 in the near future anyway, and I have testet this issue is not present in that compliance format. So that is perfect, so thank you again.

1 Like

@nnyy10 We have completed analysis of WORDSNET-24574 and decided to c Unfortunately, the PdfA1 format does not support transparency, which we use for rendering DML charts. For correct rendering of DML effects, PdfA2 should be used instead.

The issues you have found earlier (filed as WORDSNET-24574) have been fixed in this Aspose.Words for .NET 23.1 update also available on NuGet.