Wrong Text Length when Creating an SVG Image Using Aspose.Slides for Java

image.png (135.3 KB)
We are getting the wrong text length when creating an SVG. We tried to fix this issue by calling setVectorizeText(true), but it increased the file size from 5kb to 280kb.

var options = new SVGOptions();
options.setVectorizeText(true);

Tried with the latest version and one version before. Please advise how to fix it so that the file size won’t be changed.

1 Like

@haykanush,
Thank you for contacting support.

To investigate the case and help you, we need more details. Please share the following files and information:

  • sample presentation file
  • code example that reproduces the problem
  • OS version on which the code was executed
  • JDK version in your app
  • Aspose.Slides version you used
  • sample presentation file
    Belch.pptx.zip (138.7 KB)

  • code example that reproduces the problem

private void convertPptx() throws FileNotFoundException {
    Presentation presentation = new Presentation("Belch.pptx");
    ISlideCollection slides = presentation.getSlides();
    ISlide[] slidesArray = slides.toArray();
    for (ISlide is : slidesArray) {
        is.writeAsSvg(new FileOutputStream(String.format("output/%d.svg", is.getSlideNumber())));
    }
}
  • OS version on which the code was executed

Amazon Coretto 17.0.10 on Windows 11, AWS Lambda with Java 17 Runtime

  • JDK version in your app

17

  • Aspose.Slides version you used

com.aspose:aspose-slides:24.1:jdk16, tested with old version 23.8 too. The same issue.

@haykanush,
Thank you for the issue details. I am working on the issue and will get back to you soon.

1 Like

@haykanush,
I’ve reproduced the problem you described.

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): SLIDESJAVA-39397

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.

Here is another issue that can only be reproduced in SVG conversion case.
image (39).png (93.8 KB)

image (40).png (107.3 KB)

KTN-AIR_eng02_W.pdf (1.7 MB)

@haykanush,
Could you please share the presentation file on the case? Then we will investigate it too.

Sorry this one was PDF file. I will open another ticket for that.

@haykanush,
Thank you for the clarification.

@haykanush,
The issues you found earlier (filed as SLIDESJAVA-39397) have been fixed in Aspose.Slides for Java 24.3 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.