Hi,
When converting a PowerPoint side to PDF using Aspose.slides. We noticed the x-axis labels were not rendered correctly and overlapped with legends.
Code:
var saveOptions = new PdfOptions
{
SaveMetafilesAsPng = false
};
var convertedDocument = new Presentation(@".\test.pptx");
convertedDocument.Save(@".\test.pdf", SaveFormat.Pdf, saveOptions);
I’ve attached the test files and a screenshot for your reference. Could you please help to check?
test.zip (146.5 KB)
image.png (208.2 KB)
Thanks,
@ServerSide527
The issue you reported—chart x-axis labels overlapping with legends during PDF conversion using Aspose.Slides—is a rendering concern that appears to stem from layout handling in the export process. Based on the available information:
- The documentation discusses managing data labels, including positioning and formatting , but does not specifically address axis label overlap with legends during PDF export.
- There are user-reported cases of unexpected chart rendering behavior when converting to PDF, such as data labels appearing when they are not visible in the original presentation or missing after manipulation , suggesting known inconsistencies in how chart elements are rendered during export.
- No direct solution or workaround is documented in the provided sources for preventing axis labels from overlapping with legends in PDF output [0, 2, 3, 4, 5].
This behavior may be due to how Aspose.Slides handles chart layout during rendering, especially when the legend position and axis label size are not dynamically adjusted to avoid collision.
Hypothesis: The overlap occurs because Aspose.Slides does not automatically resize or reposition chart elements (like legends or axis labels) during PDF export to prevent visual conflicts, unlike PowerPoint’s rendering engine.
Since no explicit fix is available in the current context, we recommend the following steps:
- Manually adjust the chart layout in the source PowerPoint file (e.g., move the legend to top or right, reduce font size of axis labels) to create more space.
- Consider exporting with
SaveMetafilesAsPng = true to see if rasterizing complex elements avoids the overlap (though this may affect quality and file size).
- Confirm whether the same overlap occurs when exporting the presentation to PDF using Microsoft PowerPoint, to determine if it’s a source design issue or a conversion bug.
A moderator will follow up if additional diagnostics are needed.
@ServerSide527,
Thanks for the PowerPoint presentation file and image file.
I reproduced the issue as you have mentioned by using your PowerPoint presentation file to convert to PDF. I found chart axis labels overlap with legends when converting the PowerPoint presentation file to PDF.
We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNET-45250
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.