public class SlideUtil
extends java.lang.Object
Offer methods which help to search shapes and text in a presentation.
Constructor and Description |
---|
SlideUtil() |
Modifier and Type | Method and Description |
---|---|
static IShape |
findShape(IBaseSlide slide,
java.lang.String altText)
Find shape by alternative text on a slide in a PPTX presentation.
|
static IShape |
findShape(IPresentation pres,
java.lang.String altText)
Find shape by alternative text in a PPTX presentation.
|
static ITextFrame[] |
getAllTextBoxes(IBaseSlide slide)
Returns all text frames on a slide in a PPTX presentation.
|
static ITextFrame[] |
getAllTextFrames(IPresentation pres,
boolean withMasters)
Returns all text frames in a PPTX presentation.
|
public static IShape findShape(IPresentation pres, java.lang.String altText)
Find shape by alternative text in a PPTX presentation.
pres
- Scanned presentation.altText
- Alternative text of a shape.public static IShape findShape(IBaseSlide slide, java.lang.String altText)
Find shape by alternative text on a slide in a PPTX presentation.
slide
- Scanned slide.altText
- Alternative text of a shape.public static ITextFrame[] getAllTextBoxes(IBaseSlide slide)
Returns all text frames on a slide in a PPTX presentation.
slide
- Scanned slide.TextFrame
objects.public static ITextFrame[] getAllTextFrames(IPresentation pres, boolean withMasters)
Returns all text frames in a PPTX presentation.
pres
- Scanned presentation.withMasters
- Determines whether master slides should be scanned.TextFrame
objects.