Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🍂 A .NET library for manipulating PowerPoint presentations

License

NotificationsYou must be signed in to change notification settings

ShapeCrawler/ShapeCrawler

Repository files navigation

ShapeCrawler

PRs WelcomeNugetGitHub repo Good Issues for newbiesGitHub Help Wanted issues

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

Contents

Quick Start

dotnet add package ShapeCrawler

usingvarpres=newPresentation("pres.pptx");varshapes=pres.Slide(1).Shapes;varshapesCount=shapes.Count;// Get textvarshape=shapes.Shape("TextBox 1");vartext=shape.TextBox!.Text;

How To?

Create presentation

// create a new presentationvarpres=newPresentation();varshapes=pres.Slide(1).Shapes;// add new shapeshapes.AddShape(x:50,y:60,width:100,height:70);varaddedShape=shapes.Last();addedShape.TextBox!.SetText("Hello World!");pres.Save("my pres.pptx");

Update picture

usingvarpres=newPresentation("pres.pptx");// get picture shapevarpicture=pres.Slide(1).Picture("Picture 1");// change imagevarimage=System.IO.File.OpenRead("new-image.png");picture.Image!.Update(image);// get MIME type of image, eg. "image/png"varmimeType=picture.Image!.Mime;pres.Save();

More samples

You can find more usage samples by visiting theWiki page orExamples.

Prerelease Version

To access the latest prerelease builds from the branchmaster, use the NuGet package sourcehttps://www.myget.org/F/shape/api/v3/index.json.

Have questions?

If you have a question:

How to contribute?

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

Bug Report

If you encounter an issue, report the bug on theissue 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 totheadamo86@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.

Code contributing

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

Changelog

Version 0.71.0 - 2025-07-04

🍀Added Text Direction

VisitCHANGELOG.md to see the full change history.

About

🍂 A .NET library for manipulating PowerPoint presentations

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp