* @since 2.7
*/
public static Presentation createJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) throws JAXBException {
ObjectFactory factory = Context.getpmlObjectFactory();
Presentation presentation = factory.createPresentation();
// Create empty lists
Presentation.SldMasterIdLst masterIds = factory.createPresentationSldMasterIdLst();
Presentation.SldIdLst slideIds = factory.createPresentationSldIdLst();
presentation.setSldMasterIdLst(masterIds);
presentation.setSldIdLst(slideIds);
presentation.setNotesSz(
(CTPositiveSize2D)XmlUtils.unmarshalString(DEFAULT_NOTES_SIZE, Context.jcPML, CTPositiveSize2D.class) );
if (sz==null) {
presentation.setSldSz(
(Presentation.SldSz)XmlUtils.unmarshalString(DEFAULT_SLIDE_SIZE, Context.jcPML, Presentation.SldSz.class));
} else {
presentation.setSldSz( MainPresentationPart.createSlideSize(sz, landscape) );
}
return presentation;
}