PPTX to PDF: Huge CPU Utilization and Timeout

Problem occur in version 21.5 and also in latest version 21.10 (licenced product)

problem_file.zip (2.9 MB)

Configuration:

private static final PdfOptions PDF_A_1_A_OPTIONS;
static {
PDF_A_1_A_OPTIONS = new PdfOptions();
PDF_A_1_A_OPTIONS.setCompliance(PdfCompliance.PdfA1b);
PDF_A_1_A_OPTIONS.setJpegQuality((byte) 90);
PDF_A_1_A_OPTIONS.setSaveMetafilesAsPng(true);
PDF_A_1_A_OPTIONS.setTextCompression(PdfTextCompression.Flate);
}

try (FileInputStream fis = new FileInputStream(tmpFile)) {
presentation = new Presentation(fis);
}
presentation.save(os, SaveFormat.Pdf, PDF_A_1_A_OPTIONS);

image.png (10.3 KB)

openjdk version “11.0.12” 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb10u1, mixed mode, sharing)

PRETTY_NAME=“Debian GNU/Linux 10 (buster)”
NAME=“Debian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=debian

Total installed memory: 4039076

@krisvankooten,
Thank you for the issue description.

To investigate this case on our end, please specify the following:

  • JDK version you used
  • OS version on which the problem occurs

Ok, i’ve updated the issue

@krisvankooten,
Thank you for the additional information.

I logged the issue with ID SLIDESJAVA-38670 in our tracking system. Our development team will investigate this case. We will inform you of any progress.

@krisvankooten,
Our development team has investigated the issue. Unfortunately, we cannot reproduce this CPU usage behavior. We guess that the cause of this behavior was related to an external process. We have reduced memory consumption and improved performance. You should check your results using the upcoming Aspose.Slides 21.12.

A post was split to a new topic: High CPU Usage and Very Long PPTX to PDF Conversion Time