PresentationPart — Aspose.Slides FOSS Java API Reference
PresentationPart — Manages the ppt/presentation.
Package: org.aspose.slides.foss.internal.pptx
Properties
| Property | Type | Access | Description |
|---|---|---|---|
nextSlideId | int | Read/Write | |
nextMasterId | long | Read/Write | |
slideSize | int[] | Read/Write | |
notesSize | int[] | Read/Write | |
firstSlideNumber | int | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
load() | void | Loads and parses presentation. |
parseSlides() | void | Parses slide references from the presentation XML. |
parseMasters() | void | Parses master slide references from the presentation XML. |
masterReferences() | List<MasterReference> | Returns a copy of the master slide reference list. |
elementTree() | Element | Returns the root element of the presentation XML document. |
slideReferences() | List<SlideReference> | Returns a copy of the slide reference list in order. |
slideCount() | int | Returns the number of slides. |
getSlideRefById(int slideId) | Optional<SlideReference> | Finds a slide reference by its unique slide ID. |
getSlideRefByRelId(String relId) | Optional<SlideReference> | Finds a slide reference by its relationship ID. |
getNextSlideId() | int | Generates the next available slide ID. |
getNextMasterId() | long | Generates the next available master/layout slide ID. |
addMasterReference(String relId, Long masterId) | MasterReference | Adds a new master slide reference to the presentation. |
addSlideReference(String relId, Integer slideId, int index) | SlideReference | Adds a new slide reference to the presentation. |
removeSlideReference(int slideId) | boolean | Removes a slide reference by its slide ID. |
getSlideSize() | int[] | Returns the slide size in EMUs (English Metric Units). |
getNotesSize() | int[] | Returns the notes slide size in EMUs. |
setNotesSize(int cx, int cy) | void | Sets the notes slide size in EMUs. |
getFirstSlideNumber() | int | Returns the first slide number for numbering. |
setFirstSlideNumber(int number) | void | Sets the first slide number for numbering. |
save() | void | Saves the presentation. |