What is GemBox.Presentation?
GemBox.Presentation is a .NET component that enables you to read, write, convert, and print presentation files (PPTX, PPT, and PPSX) from .NET applications.
With GemBox.Presentation you get a fast and reliable component that’s easy to use and doesn't depend on Microsoft PowerPoint. It requires only .NET and it’s much faster than Microsoft Office Automation!
GemBox.Presentation Features
- Read PowerPoint (PPTX) and PowerPoint 97-2003 (PPT) presentations.
- Write/create and convert to PPTX, PDF, PDF/A, XPS, and image formats.
- View presentations in WPF applications.
- Print presentations.
- Encrypt PPTX presentations. Encrypt and digitally sign PDF presentations.
- Get, create, or edit master slides, layout slides, individual slides, master notes slide, and notes slides.
- Get, create, or edit drawings like text boxes, connectors, pictures, tables, charts, and media (audio and video).
- Get, create, or edit the text in shapes and table cells specified through paragraphs, runs, fields, and line breaks.
- Get, create, or edit hyperlinks, comments, placeholders, headers, and footers.
- Get, create, or edit shapes, table, text box, paragraph, and character formatting.
- Get, create, or edit table styles.
- Get and set built-in and custom presentation properties.
- Access or modify slide size, slide transition, and slide show settings.
- Preserve unsupported presentation content elements and properties when reading a presentation.
Get Started
You are not sure how to start working with PowerPoint presentations in .NET using GemBox.Presentation? Check the code below that shows how to create a PPTX file from scratch and write 'Hello World!' on it.
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Create new empty presentation.
var presentation = new PresentationDocument();
// Add a new custom slide.
var slide = presentation.Slides.AddNew(SlideLayoutType.Custom);
// Add a rectangle and fill it with dark blue color.
var shape = slide.Content.AddShape(
ShapeGeometryType.RoundedRectangle, 2, 2, 8, 4, LengthUnit.Centimeter);
shape.Format.Fill.SetSolid(Color.FromName(ColorName.DarkBlue));
// Add a paragraph and some text, and set text color to white.
var run = shape.Text.AddParagraph().AddRun("Hello World!");
run.Format.Fill.SetSolid(Color.FromName(ColorName.White));
// Save the presentation as PowerPoint's PPTX file.
presentation.Save("Writing.pptx");
For more GemBox.Presentation code examples and demos, please visit our examples page.
Resources
| |