Reference
API reference
Every public export of @office-kit/pptx and @office-kit/pptx/node, organized
by category. The library is fn-only — no classes — so this list is the entire
callable surface. 266 exports across 17 groups.
For the conceptual map and migration notes see the API overview. For copy-pasteable code see the Cheatsheet and Recipes.
Load / save
Open and persist a .pptx, plus the Node fs convenience subpath.
loadPresentation(input: Uint8Array | ArrayBuffer | Blob) => Promise<PresentationData>savePresentation(pres: PresentationData) => Promise<Uint8Array>createPresentation() => PresentationDataloadPresentationFile(path: string) => Promise<PresentationData> — @office-kit/pptx/nodesavePresentationToFile(pres: PresentationData, path: string) => Promise<void> — @office-kit/pptx/node
Units
Branded Emu constructors. Internal code only sees Emu — every numeric position is type-checked at the boundary.
Slides
Enumerate, add, remove, reorder. Layouts come from the loaded template.
Slide layouts
Inspect and switch slides between the layouts shipped by the deck's masters.
Slide metadata
Title, size, visibility, sections, background, transitions, speaker notes.
getSlideTitlesetSlideTitlegetSlideSizesetSlideSizeisSlideHiddensetSlideHiddengetSlideSectionssetSlideSectionsgetSlideBackgroundsetSlideBackgroundsetSlideBackgroundImageclearSlideBackgroundgetSlideNotessetSlideNotesappendSlideNotesremoveSlideNotesgetSlideTransitionsetSlideTransitionclearSlideTransition
Placeholders & text
Find placeholders by type, replace tokens, set per-run / per-paragraph formatting.
findSlidePlaceholderfindSlidePlaceholderByIdxfindSlidePlaceholdersfindEmptyPlaceholderssetSlidePlaceholderssetSlideBodygetSlideBodyreplaceTokensInPresentationreplaceTokensInSlidereplaceTextInPresentationreplaceTextInSlidereplaceTextInNotesreplaceTextInSlideNotessetShapeTextappendShapeTextsetShapeRunTextsetShapeRunFormatsetShapeTextFormatsetParagraphAlignmentsetParagraphLevelsetParagraphBulletsetParagraphSpacingsetShapeBulletssetShapeAlignmentsetShapeTextAnchorsetShapeTextMarginssetShapeTextWrapsetShapeTextAutoFit
Shapes
Add, find, mutate, remove shapes. 180+ preset geometries.
addSlideShapeaddSlideTextBoxaddSlideLineaddSlideImageaddSlideTableaddSlideChartaddSlideCommentgetSlideShapesgetShapeAtgetAllShapesfindShapeByIdfindShapeByNamefindShapeByTextfindShapesByKindfindShapesByNamefindShapesByTextfindShapesAtPointfindShapesOutsideCanvasfindFlippedShapesfindOverlappingShapePairsfindShapeInPresentationcopyShaperemoveShaperenameShapeclearSlideShapes
Shape geometry
Position, size, rotation, flip, z-order.
getShapePositionsetShapePositiongetShapeSizesetShapeSizegetShapeBoundssetShapeBoundsgetShapesBoundstranslateShapescenterShapeOnSlidegetShapeCentergetShapeRotationsetShapeRotationgetShapeFlipsetShapeFlipgetShapeZIndexsetShapeZIndexbringShapeToFrontsendShapeToBackbringShapeForwardsendShapeBackward
Fill, stroke, effects
Solid / gradient / pattern / image fill + stroke + shadow / glow.
getShapeFillsetShapeFillsetShapeGradientFillsetShapePatternFillsetShapeImageFillsetShapeNoFillclearShapeFillgetShapeFillColorgetShapeStrokesetShapeStrokesetShapeStrokeDashsetShapeStrokeArrowsetShapeNoStrokeclearShapeStrokegetShapeStrokeColorgetShapeStrokeWidthgetShapeStrokeDashgetShapeStrokeArrowgetShapeEffectsetShapeShadowsetShapeGlowclearShapeEffects
Images
Embedded picture shapes — bytes, crop, opacity, brightness, contrast.
Tables
Per-cell text / fill / alignment, structural insert / remove, sizing.
isTableShapegetTableSizegetTableDimensionsgetTableRowHeightsgetTableColumnWidthssetTableRowHeightsetTableColumnWidthgetTableCellsgetTableCellgetTableCellTextsetTableCellTextgetTableCellPositiongetTableCellFillsetTableCellFillclearTableCellFillgetTableCellAlignmentsetTableCellAlignmentsetTableCellTextFormatinsertTableRowinsertTableColumnremoveTableRowremoveTableColumn
Charts
Embedded charts with auto-generated xlsx. Kinds: bar, column, line, pie, doughnut, area.
Hyperlinks & click actions
External URL hyperlinks plus in-deck click navigation.
Animations
Entrance / exit / emphasis presets. Complex timing-tree authoring is post-1.0.
Comments
Per-slide review comments with author metadata and EMU position.
addSlideCommentremoveSlideCommentclearSlideCommentsclearAllSlideCommentsgetSlideCommentsgetAllCommentsgetCommentAuthorgetCommentAuthorsgetCommentDategetCommentPositiongetCommentSlidegetCommentTextgetCommentsSortedByDatefindCommentAuthorByNamefindCommentsAfterfindCommentsBeforefindCommentsByAuthorfindCommentsByTextgetSlideCommentAuthorsgetPresentationCommentersgetSlidesWithCommentsfindSlidesWithCommentsByAuthor
Document properties
Title, Author, Subject, Keywords, App, Company, thumbnail.
Diagnostics
Validation, raw OPC introspection, media accounting.