RayCraftDocs
v1.0.3 raycraft.dev
On this page

PresentationEditor

Complete

A presentation editor that opens and saves .pptx (and the older .ppt) and OpenDocument (.odp) files. Slides with text, shapes, pictures and tables that can be moved, resized and rotated, speaker notes, layouts, a full-screen slide show, printing, and spelling and grammar checking. The file code is part of RayCraft.Blazor.Office and has no third-party parts. _No live image: this control is described by text and the API table only._

Parameters

Files are read and written by the library itself, with no Office installation and no extra packages.

ParameterTypeDescription
Feature.pptx.odp
Slides, layouts, hidden slides, slide sizeRead and writeRead and write
Text with bold, italic, underline, strikethrough, size, colour and fontRead and writeRead and write
Bullets, numbering and list levelsRead and writeRead and write
Links (http, https, mailto, tel)Read and writeRead and write
Shapes: rectangles, rounded rectangles, ellipses, triangles, diamonds, arrows in four directions, pentagons, hexagons, stars, parallelograms, plus signs, linesRead and writeRead and write
Freeform shapes (lines and curves, no arcs)Read and writeRead and write
Comments (classic format)Read and write (not shown)Not kept
Fill and outline colours, rotationRead and writeRead and write
Pictures (PNG, JPEG, GIF, BMP)Read and writeRead and write
Tables with cell coloursRead and writeRead and write
GroupsRead (flattened)Read (flattened)
Slide backgroundsRead and writeRead and write
Speaker notesRead and writeRead and write
Theme colours and fonts, placeholders from layoutsReadNot used by the format

Keys and gestures

ParameterTypeDescription
Keys or gestureWhat it does
Click, Shift+click, drag on the slideSelect one element, add to the selection, select with a frame
Drag, arrow keys, Shift+arrow keysMove the selection (Shift moves 10 points, or keeps a drag straight)
Drag a handle, ShiftResize (Shift keeps the proportions); the top handle rotates (Shift snaps to 15°)
Double-click, Enter, F2Edit the text of the shape or table cell
EscStop editing text, or clear the selection
Tab / Shift+TabNext element; while editing a list: list level; in a table: next cell
Ctrl+B / I / U, Ctrl+] / [Bold, italic, underline; larger and smaller text
Ctrl+C / X / V / DCopy, cut, paste and duplicate; pasting a picture inserts it
Ctrl+Z / Ctrl+YUndo and redo
DeleteDelete the selection (in the slide list: the slide)
Ctrl+MNew slide
Page Up / Page DownPrevious and next slide
Drag a slide in the listMove the slide
F5 / Shift+F5Slide show from the start / from the current slide
F7Spelling and grammar
Ctrl+S, Ctrl+PSave as .pptx, print

API

ParameterTypeDescription
AllowFileTransferboolShows the commands that open and save files (default true).
ClassstringExtra CSS classes added to the root element.
FileNamestringName given to saved files, without extension (default presentation).
FontsIReadOnlyList<string>The fonts offered in the font list.
HeightstringHeight of the control as a CSS length (default 40rem).
IgnoredWordsIReadOnlyCollection<string>Words that are never reported as misspelled.
LabelstringAccessible name of the slide. Defaults to a localized Slide.
MaxImageSizeInt64Largest picture that can be inserted, in bytes (default 10,000,000).
MaxImportSizeInt64Largest presentation that can be opened, in bytes (default 50,000,000).
PdfFontsPdfFontSet
PresentationPresentationThe presentation shown at start; a different instance later replaces it. Read the edited one with GetPresentationAsync.
ProofingboolOffers spelling, grammar and logic checking for English and Bulgarian: Review menu, toolbar button and F7 (default true).
ReadOnlyboolShows the presentation without allowing changes; the slide show, printing and saving still work.
ShowMenuBarboolShows the menu bar (default true).
ShowNotesboolShows the speaker notes under the slide (default true).
ShowSlideListboolShows the list of slides (default true).
ShowStatusBarboolShows the slide number, layout and zoom (default true).
ShowToolbarboolShows the toolbar (default true).
StylestringInline style added to the root element.

Events

API

EventTypeDescription
OnChangedEventCallbackRaised after the presentation changed (an edit, undo or redo).
OnNewEventCallback
OnSaveEventCallback<OfficeFileSave>
OnSaveAsEventCallback<OfficeFileSave>
OnSlideChangedEventCallback<int>Raised when another slide is shown (zero-based index).

Package

PresentationEditor is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.