Code Monkey home page Code Monkey logo

shapecrawler's Introduction

ShapeCrawler

NuGet PRs Welcome Nuget License

ShapeCrawler (formerly SlideDotNet) 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.

Contents

Quick Start

install-package ShapeCrawler

// open existing presentation
var pres = new Presentation("some.pptx");

var shapes = pres.Slides[0].Shapes;

// get number of shapes on slide
var shapesCount = shapes.Count;

// get text
var shape = shapes.GetByName("TextBox 1");
var text = shape.TextFrame!.Text;

How To?

Create presentation

// create a new presentation
var pres = new Presentation();

var shapes = pres.Slides[0].Shapes;

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

addedShape.TextFrame!.Text = "Hello World!";

pres.SaveAs("my_pres.pptx");

More samples

Visit the Wiki page to find more usage samples.

Prerelease Version

To access prerelease builds from master branch, add https://www.myget.org/F/shape/api/v3/index.json as a package source:

Prerelease Download Prerelease

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 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 [email protected]. 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 the Contribution Guide for more details.

Changelog

Version 0.50.3 - 2024-03-06

🐞Fixed IShape.AsTable()

Visit CHANGELOG.md to see the full log.

shapecrawler's People

Contributors

amescodes avatar ashahabov avatar biduang avatar dependabot[bot] avatar femo1de avatar freshe avatar huchim avatar sergsuhanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

shapecrawler's Issues

Add text eraser

Add anonymize method to ISlide interface allowing delete/change sensitive text content from the slide.

Processing group element

Notes
There is speculation that group elements can not be a placeholder.

To Do

  • create a group element and add in ISlideCollection;
  • parse child elements;
  • read x,y,w,h group element and its children.

Exceptions

  • Group in a group is not processed.

Read font height

  • Parse font height paragraphs that have a default style.
  • Read the font height of the placeholder.

Add defininiton element types

  1. Add capability to define below non-placeholder element types:
  • Chart;
  • Picture;
  • Shape;
  • Table;
  • Grouped element.
  1. Add counting number of non-placeholder elements on slides.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.