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

Free Support Forum - aspose.com

Retain Secondary Vertical Axis Values of Combo Chart during Word to PDF Conversion | C# .NET

Hi,

When converting a .docx file to PDF through Aspose there are a few issues that happen, that do not happen when saving the .docx as PDF directly through Word. The following image should show the details highlighted in red boxes:

issues.png (74.9 KB)

Specifically for the right graph, the dash and dot markers in the chart are lot bigger in the Aspose version. The axis also reach to a different point - 120 in the word converted PDF, and 140 in the Aspose PDF. The .docx stops at 120.

For the left graph, the axis is converted from percentages to decimals. It should be in percentages.

The code used for this is as follows:

var doc = new Document(sourceDocument);
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(OutputPath);

I have attached the original .docx test file, along with the two outputs
test.zip (86.0 KB)

Thank you for your help.

@ServerSide527,

For the sake of corrections, we have logged the following issues in our issue tracking system.

  • WORDSNET-22618: Word to PDF Conversion | Percentage Values of a Vertical Axis of Chart are not Preserved
  • WORDSNET-22619: Sizes of Series Point Shapes in Combo Chart Increased during Word to PDF Conversion
  • WORDSNET-22620: Word to PDF | A Value from Secondary Vertical Axis of Combo Chart is Missing

We will further look into the details of these problems and will keep you updated on the statuses of linked issues. We apologize for your inconvenience.

1 Like

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

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