Hi,
Chart elements in PDF are converted as two separate elements instead of one when converted to PPTX.
var fileName = ""; // Enter the PDF filename
try (Document document = new Document("src/main/java/" + fileName + ".pdf")) {
document.save("saved.pptx", SaveFormat.Pptx);
var presentation = new Presentation(fileName + ".pptx");
presentation.getSlideSize().setOrientation(SlideOrientation.Landscape);
}
Source and output files:
Archive 2.zip (6.0 MB)
Could you please take look? Try to move the chart elements; the data is left behind when the chart moves.