We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Retain Decimal Label Rounding & Orientation of Chart’s X-Axis Values | Word DOCX to PDF Conversion C# .NET

Hi,

When converting a DOCX to PDF, our client noticed some charts have wrong data labels or axis in the PDF file. The issue doesn’t happen if saving the DOCX to PDF manually with Office ‘save as’ feature.

Code:

var doc = new Document(@".\test.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(@".\out.pdf");

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

test.zip (89.8 KB)
image.png (80.2 KB)

Thanks,

@ServerSide527,

We tested the scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged WORDSNET-22431 (related to decimal number rounding problem) and WORDSNET-22432 (related to orientation of chart’s x-Axis values) in our issue tracking system. We will further look into the details of these problems and will keep you updated on the statuses of corrections. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-22431) have been fixed in this Aspose.Words for .NET 21.8 update and this Aspose.Words for Java 21.8 update.