Skip to main content

Crate pptx_parse

Crate pptx_parse 

Source
Expand description

Bounded PresentationML parsing and part-preserving package writes.

Modules§

relationship_types

Structs§

ChartAxes
ChartAxis
ChartDataLabels
A c:dLbls, every switch optional so an unset one inherits its parent.
ChartLegend
ChartMarker
ChartPart
A chart part resolved against one referenced presentation theme.
ChartPlotGroup
ChartPoint
ChartPointLabel
One c:dLbl: an index plus the switches that override the series default.
ChartSeries
ChartSpace
A parsed c:chartSpace, free of any host-package metadata.
ChartTextProperties
Run properties read off a c:txPr, all optional so an absent one inherits.
Comment
CommentAuthor
CommentAuthorWrite
CommentWrite
CommentsWrite
CustomGeometryPath
DeckWrite
The desired final deck, expressed against the parsed source package.
DiagramDrawing
One ppt/diagrams/drawing#.xml: the shapes a SmartArt graphic resolves to.
GraphicFrame
GroupShape
InheritedTransform
The transform a shape inherits from its layout or master placeholder.
MediaPart
NotesSource
A slide’s notes page, beyond the notes text the model keeps.
NotesWrite
Changed speaker notes; empty text clears the body placeholder.
OmittedElement
A shape-tree child the model does not represent.
OmittedInline
A paragraph child the model does not represent, such as an equation.
ParagraphProperties
ParagraphWrite
ParseLimits
Picture
PictureAdd
PictureCrop
PictureFill
An a:blipFill on a shape: the image, and the box it stretches into.
PictureTile
a:blipFill/a:tile. The offset, alignment and flip it can also carry are not read: every tile in the corpus starts at the top left, unflipped.
Placeholder
PptxPackage
Presentation
Relationship
RunProperties
RunWrite
Shape
ShapeAdd
ShapeBase
ShapePatch
ShapeStyle
Theme references and unsupported explicit fills.
ShapeTransform
Slide
SlideLayout
SlideMaster
SlideReference
SlideSource
A slide part’s shapes, in the order and nesting of crate::Slide::shapes, and the shape-tree children the model does not represent.
SourceShape
Where one modeled shape sits in its part, and the source metadata the model does not keep.
Table
An a:tbl: its column grid, table-wide properties and rows.
TableCell
An a:tc, with its a:tcPr anchoring and margins folded into text.
TableCellBorders
a:tcPr/a:lnL, a:lnT, a:lnR and a:lnB.
TableProperties
a:tblPr: which style parts apply, and the style they come from.
TableRow
TableRowSource
TableStructure
TextBody
TextParagraph
TextRun
TextStyleSet
TextWrite
ThemePart

Enums§

BackgroundWrite
A slide background write: Set replaces the slide’s p:bg, Clear removes it so the layout or master background shows.
BlipEffect
Bitmap effects with unresolved colours.
Bullet
BulletColor
BulletFont
BulletSize
CommentFlavor
CommentSlide
GraphicFrameData
LineSpacing
A spacing height, as a share of the text size or in points.
MediaKind
PptxError
ShapeNode
ShapeWrite
SlideWrite
TargetMode
TextAutofit
TextCaps
a:rPr/@cap: how a run is cased when drawn. Display only — the stored text keeps the author’s casing.
TextOverflow
TextTarget

Functions§

builtin_table_style
The built-in style style_id names, if it is one this catalogue carries.
effective_color_map
The p:clrMap in effect for a slide: its own p:clrMapOvr, else its layout’s, else the master’s. Every projection resolves scheme colours through this one predicate.
is_supported_image_content_type
Whether write_pptx_with_edits can mint a media part for this MIME type.
master_for_layout
The master a layout belongs to, by relationship then by back-reference.
parse_pptx
parse_pptx_with_limits
parse_pptx_without_connectors
Preserves pre-connector source ordinals.
slide_theme
The theme a slide’s colours resolve against: its master’s theme part carrying effective_color_map.
text_paragraph_xml
Copies paragraph markup for a source text body.
write_pptx
write_pptx_with_edits
Writes the package with deck applied. Slides marked SlideWrite::Keep and every non-slide part keep their exact source bytes.