A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ShapeCrawler/ShapeCrawler below:

ShapeCrawler/ShapeCrawler: 🍂 A .NET library for manipulating PowerPoint presentations

ShapeCrawler is a .NET library for manipulating PowerPoint presentations. It provides a simplified object model on top of the Open XML SDK, allowing users to process presentations without having Microsoft Office installed.

dotnet add package ShapeCrawler

using var pres = new Presentation("pres.pptx");
var shapes = pres.Slide(1).Shapes;

var shapesCount = shapes.Count;

// Get text
var shape = shapes.Shape("TextBox 1");
var text = shape.TextBox!.Text;
// create a new presentation
var pres = new Presentation();

var shapes = pres.Slide(1).Shapes;

// add new shape
shapes.AddShape(x: 50, y: 60, width: 100, height: 70);
var addedShape = shapes.Last();

addedShape.TextBox!.SetText("Hello World!");

pres.Save("my pres.pptx");
using var pres = new Presentation("pres.pptx");

// get picture shape
var picture = pres.Slide(1).Picture("Picture 1");

// change image
var image = System.IO.File.OpenRead("new-image.png");
picture.Image!.Update(image);

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

pres.Save();

You can find more usage samples by visiting the Wiki page or Examples.

To access the latest prerelease builds from the branch master, use the NuGet package source https://www.myget.org/F/shape/api/v3/index.json.

If you have a question:

Give a star⭐ if you find this useful, please give it a star to show your support.

If you encounter an issue, report the bug on the issue page.

To be able to reproduce a bug, it's often necessary to have the original presentation file attached to the issue description. If this file contains confidential data and cannot be shared publicly, you can securely send it to theadamo86@gmail.com. Of course, if your security policy allow this. We assure you that only the maintainer will access this file, and it will not be shared publicly.

Pull Requests are welcome! Please read the Contribution Guide for more details.

Version 0.71.1 - 2025-07-25

🐞Fixed CVE-2025-53015 vulnerability.

Visit CHANGELOG.md to see the full change history.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4