Hi, we are experiencing some issues while trying to convert pdf to pptx file using aspose.pdf library.
The image inside textbox gets its corners cropped after the conversion. Please find the pdf input attached. Also, below is the code snippet to replicate this behaviour.
repro_#2535881.pdf (11.4 KB)
In case some options need to be passed to avoid such outcome, please advise.
@Test
void export_exportWithAB() throws IOException {
byte[] pdfBytes =
new ClassPathResource("repro_#2535881.pdf").getInputStream().readAllBytes();
try (Document srcDoc = new Document(pdfBytes)) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
srcDoc.save(outputStream, SaveFormat.Pptx);
byte[] pptx = outputStream.toByteArray();
Files.write(Path.of("test.pptx"), pptx, StandardOpenOption.CREATE);
} catch (Exception e) {
e.printStackTrace();
}
}