Hi Pablo
- Code: Select all
PresentationMLPackage.createPackage()
creates slideLayout1:
- Code: Select all
// Slide layout part
SlideLayoutPart layoutPart = new SlideLayoutPart();
layoutPart.setJaxbElement( SlideLayoutPart.createSldLayout() );
slidePart.addTargetPart(layoutPart);
If you want to use any other layout, you'll need to add it to the package in a similar way.
For it to be useful, you'll probably want to copy the contents of the layout part you want from an existing pptx file.
See the docx4j samples ImportForeignPart and CopyPart for hints as to how to do this.
If you can work up a pptx specific sample which i could add which shows how to add a layout from a layout part sitting in the file system, that'd be great
hope this helps .. Jason