Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Embed Document into Presentations as OLE Object in Java
// Embed Spreadsheet into a Presentations as an OLE object
int pageNumber = 1;
OlePresentationOptions oleSlidesOptions = new OlePresentationOptions("spreadsheet.xlsx", pageNumber);
// Set Coordinates and Dimensions
oleSlidesOptions.setX(10);
oleSlidesOptions.setY(10);
oleSlidesOptions.setHeight(200);
oleSlidesOptions.setWidth(200);
// Import the Spreadsheet into Presentation
Merger merger = new Merger("presentation.pptx");
merger.importDocument(oleSlidesOptions);
merger.save("output-presentation.pptx");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.