NotesSlidePart — Aspose.Slides FOSS Java API Reference

NotesSlidePart — Manages a notes slide XML part (ppt/notesSlides/notesSlideN.

Package: org.aspose.slides.foss.internal.pptx

Note: This is an internal implementation class. Do not import or use it directly — the package org.aspose.slides.foss.internal.pptx is not part of the public API and may change without notice. This page is provided for reference only.


Properties

PropertyTypeAccessDescription
partNameStringRead/Write
nameStringRead/Write
spTreeElementRead/Write
notesTxbodyElementRead/Write
notesTextStringRead/Write

Methods

MethodReturnsDescription
load()voidLoads and parses the notes slide XML from the package.
getPartName()StringReturns the part name of this notes slide.
getName()StringReturns the slide name from <p:cSld name=".
setName(String value)voidSets the slide name on <p:cSld name=".
getSpTree()ElementReturns the <p:spTree> element from the notes slide.
findPlaceholder(String phType)ElementFinds the first placeholder shape with the given type.
getNotesTxbody()ElementReturns the <p:txBody> element of the notes body placeholder.
hasPlaceholder(String phType)booleanChecks whether a placeholder of the given type exists.
removePlaceholder(String phType)voidRemoves the placeholder shape of the given type.
addPlaceholder(String phType)voidAdds a minimal placeholder shape of the given type if not already present.
buildPlaceholderShape(String phType, int shapeId)ElementBuilds a minimal placeholder shape element for notes slides.
setPlaceholderText(String phType, String text)voidSets text content for a placeholder shape, adding it if it does not exist.
save()voidSaves the notes slide XML back to the package.
resolveTarget(String target)StringResolves a relative target path to an absolute part name.
createEmpty(OpcPackage pkg, String slidePartName)NotesSlidePartCreates a new empty notes slide in the package for a given slide.
findNotesMaster(OpcPackage pkg)StringFinds the notes master part name in the package.
computeRelativeTarget(String fromPart, String toPart)StringComputes a relative path from one part to another.
buildNotesXml()byte[]Builds a minimal notes slide XML with slide image and body placeholders.
delete(OpcPackage pkg, String partName)voidDeletes a notes slide and its associated files from the package.
ensurePartExists(int slideNumber)voidEnsures the notes slide XML part exists in the package with a minimal structure.
getNotesText()StringReturns the text from the body (notes) placeholder.
setNotesText(String text)voidSets the text of the body (notes) placeholder.

See Also