Loading a pptx is as simple as:
- Code: Select all
PresentationMLPackage presentationMLPackage = PresentationMLPackage.load(file);
Saving is:
- Code: Select all
presentationMLPackage.save(file);
Using the same approach as for docx documents, it represents each part as a JAXB content tree.
To create a "Hello World" presentation, see http://dev.plutext.org/trac/docx4j/browser/trunk/docx4j/src/pptx4j/java/org/pptx4j/samples
All the code you need is in docx4j (docx4j-nightly-20100118.jar). (If building from source, be sure to add src/pptx4j/java to your path.)
See ...

News of Forums