PDF to PPTX conversion issues

Hello,

We’re having issues with converting a PDF file containing content into PPTX using the Aspose.PDF library.

Input PDF: Input.pdf (37.7 KB)
Result PPTX: Result.7z (66.1 KB)

Here are found issues:

Below is sample code that was used to reproduce this (tested with Aspose.PDF version 22.2).

Path pdfPath = Paths.get("input.pdf");
Path pptxPath = Paths.get("result.pptx");
try (Document srcDoc = new Document(Files.newInputStream(pdfPath))) {
  ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
  srcDoc.save(outputStream, SaveFormat.Pptx);
  byte[] pptx = outputStream.toByteArray();
  Files.write(pptxPath, pptx);
}

Thank you.

@dfinsolutions

The reported issues with PDF to PPTX conversion—specifically paragraph spacing, superscript font size, and underline rendering—are consistent with known limitations in Aspose.PDF for Java version 22.2 . A similar PDF to PPTX conversion issue was previously acknowledged by Aspose support, though it remained unresolved as of April 2022, suggesting ongoing challenges in the conversion engine [3, 4].

Regarding superscript font size, while the documented behavior relates to DOCX-to-HTML conversion, Aspose applies a 1.5x font size multiplier to compensate for the reduced size of superscript text in source documents . This scaling logic may influence how superscript is rendered during PDF to PPTX conversion, potentially contributing to size discrepancies.

No workaround or fix has been provided for these specific rendering issues in version 22.2 . As a result, formatting inconsistencies such as paragraph spacing and underline/border rendering may require manual correction in PowerPoint after conversion.

You may consider testing with a newer version of Aspose.PDF, if available, to determine whether rendering improvements have been implemented.