Hi, we are experiencing some issues while trying to convert pdf to pptx file using aspose.pdf library. Table borders with bigger border weight are rendered incorrectly in the exported pptx. Please find the pdf input attached. Also, below is the code snippet to replicate this behaviour.
bug_254459.pdf (13.4 KB)
In case some options need to be passed to avoid such outcome, please advise.
pdf
image.png (4.2 KB)
pptx
image.png (37.1 KB)
@Test
void exportPPTX_tableBordersAreRenderedIncorrectly() throws Exception {
var pdfBytes = new ClassPathResource("bug_254459.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_254459.pptx"), out, StandardOpenOption.CREATE);
} catch (Exception e) {
e.printStackTrace();
}
}