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.pptxis not part of the public API and may change without notice. This page is provided for reference only.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
partName | String | Read/Write | |
name | String | Read/Write | |
spTree | Element | Read/Write | |
notesTxbody | Element | Read/Write | |
notesText | String | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
load() | void | Loads and parses the notes slide XML from the package. |
getPartName() | String | Returns the part name of this notes slide. |
getName() | String | Returns the slide name from <p:cSld name=". |
setName(String value) | void | Sets the slide name on <p:cSld name=". |
getSpTree() | Element | Returns the <p:spTree> element from the notes slide. |
findPlaceholder(String phType) | Element | Finds the first placeholder shape with the given type. |
getNotesTxbody() | Element | Returns the <p:txBody> element of the notes body placeholder. |
hasPlaceholder(String phType) | boolean | Checks whether a placeholder of the given type exists. |
removePlaceholder(String phType) | void | Removes the placeholder shape of the given type. |
addPlaceholder(String phType) | void | Adds a minimal placeholder shape of the given type if not already present. |
buildPlaceholderShape(String phType, int shapeId) | Element | Builds a minimal placeholder shape element for notes slides. |
setPlaceholderText(String phType, String text) | void | Sets text content for a placeholder shape, adding it if it does not exist. |
save() | void | Saves the notes slide XML back to the package. |
resolveTarget(String target) | String | Resolves a relative target path to an absolute part name. |
createEmpty(OpcPackage pkg, String slidePartName) | NotesSlidePart | Creates a new empty notes slide in the package for a given slide. |
findNotesMaster(OpcPackage pkg) | String | Finds the notes master part name in the package. |
computeRelativeTarget(String fromPart, String toPart) | String | Computes 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) | void | Deletes a notes slide and its associated files from the package. |
ensurePartExists(int slideNumber) | void | Ensures the notes slide XML part exists in the package with a minimal structure. |
getNotesText() | String | Returns the text from the body (notes) placeholder. |
setNotesText(String text) | void | Sets the text of the body (notes) placeholder. |