Package org.pptx4j.samples
Class AutoShapes
java.lang.Object
org.pptx4j.samples.AutoShapes
Generate a presentation consisting of all preset shapes.
We can save as HTML to get VML, or save as ODP to get SVG.
(Saving all slides as HTML crashes pptx 2007, but 12 slides
at least seems to work)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static SlidePartcreateSlidePart(MainPresentationPart pp, SlideLayoutPart layoutPart, int i) Create a slide and add it to the packageprivate static StringgetPresetShape(String preset, boolean noLine) get XML for the specified present shapeprivate static StringgetSlideTitle(String preset) static void
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
AutoShapes
public AutoShapes()
-
-
Method Details
-
main
- Throws:
Exception
-
createSlidePart
private static SlidePart createSlidePart(MainPresentationPart pp, SlideLayoutPart layoutPart, int i) throws InvalidFormatException, jakarta.xml.bind.JAXBException Create a slide and add it to the package- Parameters:
pp-layoutPart-i-- Returns:
- the slide
- Throws:
InvalidFormatExceptionjakarta.xml.bind.JAXBException
-
getPresetShape
get XML for the specified present shape- Parameters:
preset-noLine-- Returns:
-
getSlideTitle
-