Hello, I have a display issue with a PDF that comes from a PPTX file. The PPTX is generated with Aspose.Slides and then we do a presentation.save to convert it to the PDF version.
The problem is that a Chart’s legend text does not wrap/adjust as necessary similar to the PPTX version of the file. This doesn’t happen in every case, but with a sufficiently large legend text it is pretty consistent.
In 15.6 the text will simply print over and out of the legend’s box.
In 15.7-15.8.1 the text will cut off as it prints out of the legend’s box.
The code for the legend formatting (when creating the PPTX) is currently quite simple:
Chart.Legend.TextFormat.PortionFormat.FontHeight = FontSize;
Chart.Legend.Position = LegendPositionType.Bottom;
Chart.Legend.Format.Line.Style = LineStyle.Single;
Chart.Legend.Format.Line.FillFormat.FillType = FillType.Solid;
Chart.Legend.Format.Line.FillFormat.SolidFillColor.Color = Color.Gray;
Chart.Legend.TextFormat.PortionFormat.LatinFont = new FontData(SetupLabelFontFamily());
Chart.Legend.TextFormat.PortionFormat.FillFormat.FillType = FillType.Solid;
Our obvious short term fix is to use 15.6 and disable the box surrounding the legend. Are we missing something simple that would allow the PDF legend to wrap, even though the PPTX that it is based off of works correctly?
Thanks.