Hello,
I’m trying to convert a PDF to PPT, but the shape border is not being rendered correctly. Could you please take a look? Thank you!
Code:
Path pdfPath = Paths.get("/path/to/rotated.pdf");
Path pptxPath = Paths.get("/path/to/rotated-converted.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);
}
Input, output and screenshot files:
border.zip (580.4 KB)