1. Products
  2.   Presentation
  3.   .NET
  4.   ShapeCrawler
 
  

Free .NET Library to Create & Manipulate PPTX Presentations

Open Source .NET Library allows to Create, Read, Modify & Manipulate PowerPoint PPTX Presentations with ease. It Supports Inserting Slide, Text, Line, Hyperlink & Table via C# API.

What is ShapeCrawler?

Both in our personal and professional life, PowerPoint presentations are now a must. Although they form the foundation of communication, controlling them programmatically has frequently proven to be difficult. But things have changed significantly since ShapeCrawler, a potent.NET framework designed specifically for PowerPoint, was released. It provides access to a plethora of opportunities by enabling programmers and software developers to programmatically, efficiently, and systematically navigate, extract, alter, and work with PowerPoint presentations.

Software developers may build and modify PowerPoint PPT and PPTX presentations programmatically within their own.NET applications with ShapeCrawler, an open-source.NET tool. It offers incredibly effective and potent ways to view, edit, and examine PowerPoint slides, shapes, and their properties. The library can be a useful addition to a developer's arsenal since it enables them to automate tedious activities, extract data from presentations, and produce dynamic reports.

ShapeCrawler simplifies the process of accessing and handling PowerPoint documents. With just a couple of lines of .NET code, software professionals can open and load various types of presentations, iterate through slides, and interact with individual shapes, merge multiple slides, insert image to a slide, and many more. It can generate automated reports as well as presentations from data, confirming reliability and accuracy. Whether you're a seasoned developer or a newcomer to PowerPoint manipulation in .NET, ShapeCrawler opens a gateway to efficiency, allowing for the seamless integration of PowerPoint functionalities into your applications.

Previous Next

Getting Started with ShapeCrawler

The recommend way to install ShapeCrawler is using NuGet. Please use the following command for a smooth installation.

Install ShapeCrawler via NuGet

 install-package ShapeCrawler

Manipulate Presentation via .NET API

The open source ShapeCrawler library allows software developers to process PowerPoint PPTX presentations without having Microsoft Office installed. The library simplifies the process of accessing PowerPoint files with just a couple of lines of .NET code. Software Developers can open an existing presentation, iterate through its slides, insert images into a slide, get text holder auto shape, auto-fit text, add and update hyperlink, interact with individual shapes and many more. The following example shows how software developers can handle images in presentation inside .NET applications.

How to Insert Picture inside Presentation using .NET API?

using var pres = SCPresentation.Open("picture.pptx");

// get picture shape
var picture = pres.Slides[0].Shapes.GetByName("Picture 1");

// change image
picture.Image.SetImage("new-image.png");

// get MIME type of image, eg. "image/png"
var mimeType = picture.Image.MIME;

pres.Save();

Work with Images & Charts in Presentation

The open source ShapeCrawler library has provided complete support for working with images and charts inside presentations. Handling images and multimedia elements within presentations becomes a streamlined process with library. The library is designed to work with various versions of PowerPoint, making it a versatile choice for .NETs developers. The library facilitates tasks like, inserting new images, replacing existing images, adjusting images properties, or even extracting them for external use. Here is an example that demonstrates how software developers can update properties of a Chart inside presentation using .NET API.

How to Update Properties of a Chart inside Presentation via .NET API?

using var pres = SCPresentation.Open("helloWorld.pptx");
var slide = pres.Slides.First();

// get chart
var chart = (IChart)slide.Shapes.First(sp => sp is IChart);

// print chart title
if (chart.HasTitle)
{
    Console.WriteLine(chart.Title);
}

if (chart.Type == SCChartType.BarChart)
{
    Console.WriteLine("Chart type is BarChart");
}

// update category
chart.Categories[0].Name = "Price";

Manage Text & Extract Data from Presentation via .NET

ShapeCrawler library allows users to easily modify the properties of shapes and text within PowerPoint slides via .NET API. Whether you need to update text content, change the position of shapes, or manipulate their attributes, this library provides a straightforward API to make these changes. One of the most valuable use cases of ShapeCrawler library is extracting data from presentation. The library has provided very powerful features for managing text and other relevant data inside PowerPoint presentation via .NET API. Software developers can programmatically extract data from PowerPoint presentations, making it an excellent tool for generating reports or transforming presentation content into other formats, such as Excel or PDF. The following example shows how to replace text in the first slide of the presentations.

How to Replace All Text on the First Slide of Presentation via .NET API?

using var pres = SCPresentation.Open("some.pptx");
var textFrames = pres.Slides[0].GetAllTextFrames();

foreach (var textFrame in textFrames)
{
    textFrame.Text = "some text";
}

pres.Save();