PresentationPart — Aspose.Slides FOSS Java API Reference
Overview
PresentationPart manages the ppt/presentation. Browse the properties and methods in the tables below to understand the complete public API surface of this type. All members listed here are part of the stable public API and may be used in production code targeting the FOSS edition. Refer to the package documentation for installation instructions and a complete list of related types.
Package: org.aspose.slides.foss.internal.pptx
Properties
| Property | Type | Access | Description |
|---|---|---|---|
nextSlideId | int | Read/Write | The next slide id value. |
nextMasterId | long | Read/Write | The next master id value. |
slideSize | int[] | Read/Write | The slide size value. |
notesSize | int[] | Read/Write | The notes size value. |
firstSlideNumber | int | Read/Write | The first slide number value. |
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. |