Hi, we are experiencing some issues while trying to convert pdf to pptx file using aspose.pdf library. Underline styles are not correctly exported to pptx. Please find the pdf input attached. Also, below is the code snippet to replicate this behaviour.
bug_255276.pdf (69.9 KB)
In case some options need to be passed to avoid such outcome, please advise.
pdf
image.png (6.9 KB)
pptx
image.png (4.2 KB)
@Test
void exportPPTX_underlineStylesAreNotCorrectlyExported () throws Exception {
var pdfBytes = new ClassPathResource("bug_255276.pdf").getInputStream().readAllBytes();
try (Document srcDoc = new Document(pdfBytes)) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
srcDoc.save(outputStream, com.aspose.pdf.SaveFormat.Pptx);
var out = outputStream.toByteArray();
Files.write(Path.of("bug_255276.pptx"), out, StandardOpenOption.CREATE);
} catch (Exception e) {
e.printStackTrace();
}
}