@Beta public class XMLSlideShow extends org.apache.poi.ooxml.POIXMLDocument implements SlideShow<XSLFShape,XSLFTextParagraph>
Constructor and Description |
---|
XMLSlideShow() |
XMLSlideShow(InputStream is) |
XMLSlideShow(OPCPackage pkg) |
Modifier and Type | Method and Description |
---|---|
XSLFPictureData |
addPicture(byte[] pictureData,
PictureData.PictureType format)
Adds a picture to the workbook.
|
XSLFPictureData |
addPicture(File pict,
PictureData.PictureType format)
Adds a picture to the presentation.
|
XSLFPictureData |
addPicture(InputStream is,
PictureData.PictureType format)
Adds a picture to the slideshow.
|
XSLFChart |
createChart(XSLFSlide slide)
Create a blank chart on the given slide.
|
MasterSheet<XSLFShape,XSLFTextParagraph> |
createMasterSheet() |
void |
createNotesMaster()
Create a notes master.
|
XSLFSlide |
createSlide()
Create a blank slide using the default (first) master.
|
XSLFSlide |
createSlide(XSLFSlideLayout layout)
Create a slide and initialize it from the specified layout.
|
XSLFSlideLayout |
findLayout(String name)
Scan the master slides for the first slide layout with the given name.
|
XSLFPictureData |
findPictureData(byte[] pictureData)
check if a picture with this picture data already exists in this presentation
|
List<PackagePart> |
getAllEmbeddedParts()
Get the document's embedded files.
|
List<XSLFChart> |
getCharts()
Return all the charts in the slideshow
|
XSLFCommentAuthors |
getCommentAuthors()
Returns the list of comment authors, if there is one.
|
CTPresentation |
getCTPresentation() |
org.apache.poi.ooxml.extractor.POIXMLPropertiesTextExtractor |
getMetadataTextExtractor() |
XSLFNotesMaster |
getNotesMaster()
Return the Notes Master, if there is one.
|
XSLFNotes |
getNotesSlide(XSLFSlide slide)
Return notes slide for the specified slide or create new if it does not exist yet.
|
Dimension |
getPageSize()
Returns the current page size
|
Object |
getPersistDocument() |
List<XSLFPictureData> |
getPictureData()
Returns all Pictures of this slideshow.
|
Resources |
getResources() |
List<XSLFSlideMaster> |
getSlideMasters()
Returns all slide masters.
|
List<XSLFSlide> |
getSlides()
Return all the slides in the slideshow
|
XSLFTableStyles |
getTableStyles() |
XSLFSlide |
removeSlide(int index) |
void |
setPageSize(Dimension pgSize)
Change the current page size
|
void |
setSlideOrder(XSLFSlide slide,
int newIndex) |
close, getAllEmbedds, getPackage, getProperties, openPackage, write
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toString
public XMLSlideShow()
public XMLSlideShow(OPCPackage pkg)
public XMLSlideShow(InputStream is) throws IOException
IOException
public List<PackagePart> getAllEmbeddedParts() throws OpenXML4JException
getAllEmbeddedParts
in class org.apache.poi.ooxml.POIXMLDocument
OpenXML4JException
public List<XSLFPictureData> getPictureData()
SlideShow
List
is unmodifiable.getPictureData
in interface SlideShow<XSLFShape,XSLFTextParagraph>
List
of PictureData
.public XSLFSlide createSlide(XSLFSlideLayout layout)
layout
- The layout to use for the new slide.public XSLFSlide createSlide()
createSlide
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public XSLFNotes getNotesSlide(XSLFSlide slide)
public void createNotesMaster()
public XSLFNotesMaster getNotesMaster()
public List<XSLFSlideMaster> getSlideMasters()
SlideShow
getSlideMasters
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public List<XSLFSlide> getSlides()
getSlides
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public XSLFCommentAuthors getCommentAuthors()
public void setSlideOrder(XSLFSlide slide, int newIndex)
newIndex
- 0-based index of the slidepublic XSLFSlide removeSlide(int index)
public Dimension getPageSize()
SlideShow
getPageSize
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public void setPageSize(Dimension pgSize)
SlideShow
setPageSize
in interface SlideShow<XSLFShape,XSLFTextParagraph>
pgSize
- page size (in points)@Internal public CTPresentation getCTPresentation()
public XSLFPictureData addPicture(byte[] pictureData, PictureData.PictureType format)
addPicture
in interface SlideShow<XSLFShape,XSLFTextParagraph>
pictureData
- The bytes of the pictureformat
- The format of the picture.public XSLFPictureData addPicture(InputStream is, PictureData.PictureType format) throws IOException
addPicture
in interface SlideShow<XSLFShape,XSLFTextParagraph>
is
- The stream to read image fromformat
- The format of the pictureIOException
public XSLFPictureData addPicture(File pict, PictureData.PictureType format) throws IOException
addPicture
in interface SlideShow<XSLFShape,XSLFTextParagraph>
pict
- The file containing the image to addformat
- The format of the picture.IOException
public XSLFPictureData findPictureData(byte[] pictureData)
findPictureData
in interface SlideShow<XSLFShape,XSLFTextParagraph>
pictureData
- The picture data to find in the SlideShownull
if picture data is not found in this slideshowpublic XSLFSlideLayout findLayout(String name)
name
- The layout name (case-insensitive). Cannot be null.public XSLFTableStyles getTableStyles()
public MasterSheet<XSLFShape,XSLFTextParagraph> createMasterSheet() throws IOException
createMasterSheet
in interface SlideShow<XSLFShape,XSLFTextParagraph>
IOException
public Resources getResources()
getResources
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public org.apache.poi.ooxml.extractor.POIXMLPropertiesTextExtractor getMetadataTextExtractor()
getMetadataTextExtractor
in interface SlideShow<XSLFShape,XSLFTextParagraph>
public Object getPersistDocument()
getPersistDocument
in interface SlideShow<XSLFShape,XSLFTextParagraph>
POIDocument
or POIXMLDocument
Copyright © 2010 - 2020 Adobe. All Rights Reserved