Arrow Is Pixelated and Font Color is Blue when Converting PPTX to PDF in Java

One of our customers complains about the PDF that was created from a PowerPoint presentation.

  1. Arrow is pixelated or displayed incorrectly
  2. Font color in the list is blue instead of gray

Apparently the setting of the master foil is used under certain circumstances. Sample file ist attached.

Convert Code:

File target = getTempOutputFile(targetMediaType);
try (InputStream is = new FileInputStream(source)) {
    try (var doc = AutoClose.wrap(new Presentation(is), Presentation::dispose)) {
        doc.get().save(target.getAbsolutePath(), SaveFormat.Pdf);
        return target;
    }
} catch (Exception e) { ..}

aspose-convert.zip (130.6 KB)

@depi,
Thank you for contacting support.

You can increase resolution for images in output PDF documents using PdfOptions class as follows:

var pdfOptions = new PdfOptions();
pdfOptions.setSufficientResolution(300);

var doc = new Presentation("7120-testpräsentation.pptx");
doc.save("output.pdf", SaveFormat.Pdf, pdfOptions);
doc.dispose();

The result will be better. output.pdf (74.0 KB)

More examples:

Thank you for reporting on the issue. 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-39387

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 share the following additional information if it is possible:

  • OS version on which the conversion was performed
  • JDK version in your app

OS version
Windows Server (2016, 2019, 2022) and RedHat Linux 8

JDK version
Java 17 LTS (17.0.8)

@depi,
Thank you for the additional information. I’ve forwarded it to our developers.

@depi,
The issues you found earlier (filed as SLIDESJAVA-39387) 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.