Chart Axis Title Is Wrapped Incorrectly When Converting a Slide to an Image in C#

Hi,

Pls see attached pptx:
sample1.zip (133.4 KB)

The code I ran:

using Aspose.Slides;
using Aspose.Slides.Export;
using Aspose.Slides.Animation;
using Aspose.Slides.Charts;
using Aspose.Slides.SmartArt;
using Aspose.Slides.Ink;
using System.Drawing;
using System.Drawing.Imaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Collections;
using System.Xml;
using System.Threading;
using System.Reflection;
using System.IO;
using System.Drawing.Text;
class Program
{
    static void Main(string[] args)
    {
        try
        {
            // Apply Aspose.Slides license
            License license = new License();
            license.SetLicense("Aspose.Total.lic"); // Make sure this file is in your application's directory
            Console.WriteLine("\nLicense applied successfully");

            // Load the presentation
            using (Presentation presentation = new Presentation("sample1.pptx"))
            {
                Console.WriteLine("Number of slides in the presentation: " + presentation.Slides.Count);
                
                // Create output directory if it doesn't exist
                string outputDir = "slide_images";
                if (!Directory.Exists(outputDir))
                {
                    Directory.CreateDirectory(outputDir);
                }
                
                // Convert each slide to image
                for (int i = 0; i < presentation.Slides.Count; i++)
                {
                    ISlide slide = presentation.Slides[i];
                    
                    // Create a full scale image
                    using (IImage image = slide.GetImage(1.0f, 1.0f))
                    {
                        string fileName = Path.Combine(outputDir, $"slide_{i + 1}.png");
                        image.Save(fileName, Aspose.Slides.ImageFormat.Png);
                        Console.WriteLine($"Saved slide {i + 1} as {fileName}");
                    }
                }
                
                Console.WriteLine($"\nAll slides exported to images in '{outputDir}' folder");
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine($"An error occurred: {ex.Message}");
        }
    }
}

I used Aspose 25.9 and net9.0.

The output image is attached.
slide_1.png (43.4 KB)

I see text wrapping issue on the Y-axis. of the graph In the original PPT, the label “100,000 persons”*wraps to the next line, whereas in image generated by the above code, “100,000” stays on the first line and “persons” goes in second line.

Kindly help resolve this wrapping issue.

Thanks,
@bhav

@bhav,
Thank you for reporting the issue. I have reproduced the problem of incorrect wrapping of the chart axis title when converting the slide to a PNG image. We are sorry you encountered this problem.

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-45138

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.

Please also note that the Aptos fonts are missing on the operating system where the slide-to-image conversion was performed.

Internal ref id: CONN-4164650