PresentationPart

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

PropertyTypeAccessDescription
nextSlideIdintRead/WriteThe next slide id value.
nextMasterIdlongRead/WriteThe next master id value.
slideSizeint[]Read/WriteThe slide size value.
notesSizeint[]Read/WriteThe notes size value.
firstSlideNumberintRead/WriteThe first slide number value.

Methods

MethodReturnsDescription
load()voidLoads and parses presentation.
parseSlides()voidParses slide references from the presentation XML.
parseMasters()voidParses master slide references from the presentation XML.
masterReferences()List<MasterReference>Returns a copy of the master slide reference list.
elementTree()ElementReturns the root element of the presentation XML document.
slideReferences()List<SlideReference>Returns a copy of the slide reference list in order.
slideCount()intReturns 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()intGenerates the next available slide ID.
getNextMasterId()longGenerates the next available master/layout slide ID.
addMasterReference(String relId, Long masterId)MasterReferenceAdds a new master slide reference to the presentation.
addSlideReference(String relId, Integer slideId, int index)SlideReferenceAdds a new slide reference to the presentation.
removeSlideReference(int slideId)booleanRemoves 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)voidSets the notes slide size in EMUs.
getFirstSlideNumber()intReturns the first slide number for numbering.
setFirstSlideNumber(int number)voidSets the first slide number for numbering.
save()voidSaves the presentation.

See Also