Class PptxPart
java.lang.Object
pro.verron.officestamper.experimental.PptxPart
- All Implemented Interfaces:
DocxDocument, DocxPart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Retrieves the content of the WordprocessingML-based document as a list of objects.org.docx4j.openpackaging.packages.WordprocessingMLPackage
document()
Retrieves the WordprocessingMLPackage document associated with this instance.from
(org.docx4j.wml.ContentAccessor accessor) Creates and returns a DocxPart instance from the provided ContentAccessor.org.docx4j.openpackaging.parts.Part
part()
Retrieves the part of the WordprocessingML-based document.Streams all paragraphs contained within the WordprocessingML-based document part.streamParts
(String type) Streams the parts of the document that match the specified type.Stream
<org.docx4j.wml.R> Streams all run elements contained within the WordprocessingML-based document part.
-
Constructor Details
-
PptxPart
public PptxPart()Constructs a new instance of the PptxPart class.
This constructor initializes an instance of PptxPart, which represents a specific implementation of the DocxPart interface tailored for handling parts within a PowerPoint document. This class provides methods to interact with and manipulate the content and structure of parts in a PowerPoint file.
-
-
Method Details
-
part
-
from
Description copied from interface:DocxPart
Creates and returns a DocxPart instance from the provided ContentAccessor. -
content
Description copied from interface:DocxPart
Retrieves the content of the WordprocessingML-based document as a list of objects. The content may include various document elements such as paragraphs, tables, runs, etc. -
streamParagraphs
Description copied from interface:DocxPart
Streams all paragraphs contained within the WordprocessingML-based document part.- Specified by:
streamParagraphs
in interfaceDocxPart
- Returns:
- a stream of
Paragraph
objects representing the paragraphs in the document part
-
streamRun
-
document
public org.docx4j.openpackaging.packages.WordprocessingMLPackage document()Description copied from interface:DocxDocument
Retrieves the WordprocessingMLPackage document associated with this instance. The returned document provides access to its content and metadata.- Specified by:
document
in interfaceDocxDocument
- Returns:
- the WordprocessingMLPackage document
-
streamParts
Description copied from interface:DocxDocument
Streams the parts of the document that match the specified type.- Specified by:
streamParts
in interfaceDocxDocument
- Parameters:
type
- the type of parts to stream, typically used to filter specific types of document parts- Returns:
- a stream of
DocxPart
objects that match the specified type
-