Package org.pptx4j.samples
Class PptxResizer
java.lang.Object
org.pptx4j.samples.PptxResizer
This is a proof of concept of resizing slides (ie including their contents).
It does 2 things:
1. alters sldSz in presentation.xml,
2. calculates new values for xfrm elements in slides, layouts and masters
This is enough to handle simple content. Additional handling is probably
required for SmartArt and other long tail features.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean(package private) PresentationMLPackagestatic SlideSizesWellKnown(package private) float(package private) float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidhandleGroupShape(GroupShape groupShape) private voidhandlePart(CommonSlideData cSld) private voidprivate voidhandleShape(Shape shape) private voidhandleXfrm(CTGroupTransform2D xfrm) private voidhandleXfrm(CTTransform2D xfrm) static void
-
Field Details
-
targetSize
-
landscape
public static boolean landscape -
pMLPackage
PresentationMLPackage pMLPackage -
xScale
float xScale -
yScale
float yScale
-
-
Constructor Details
-
PptxResizer
public PptxResizer()
-
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-
handleParts
- Throws:
Docx4JException
-
handlePart
-
handleGroupShape
-
handleShape
-
handleXfrm
-
handleXfrm
-