pub struct ParsedPresentation { /* private fields */ }Expand description
A presentation parsed once with artwork deferred, kept for rendering many nodes on demand.
Besides the deferred model, the handle retains the inflated slide, layout,
master and theme parts with their XML trees, relationships, color maps and
related chart, diagram, ink and control parts, so a render never reads the
archive again. Each render parses only the node list that can hold the
target and renders the one node; the result equals the eager parse’s
artwork for that node and what render_node_artwork returns. The handle
is larger than the model alone and is not Sync; drop it when the viewer
closes the presentation.
Implementations§
Source§impl ParsedPresentation
impl ParsedPresentation
Sourcepub fn document(&self) -> &PresentationDocument
pub fn document(&self) -> &PresentationDocument
The model, as parse_presentation_with_options returns it with
defer_artwork set.
Sourcepub fn into_document(self) -> PresentationDocument
pub fn into_document(self) -> PresentationDocument
Gives up the retained state and keeps the model.
Sourcepub fn render_node_artwork(
&self,
target: &ArtworkTarget,
) -> Result<Option<NodeArtwork>, ParseError>
pub fn render_node_artwork( &self, target: &ArtworkTarget, ) -> Result<Option<NodeArtwork>, ParseError>
Renders the artwork of one node from the retained state, or None when
the node has none or does not exist. Legacy binary presentations have no
generated artwork and always yield None.