Coder Social home page Coder Social logo

malleic / pptshow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qrpcode/pptshow

0.0 0.0 0.0 29.14 MB

Java generates PPT documents and supports the new features of PPTX version 2010 / Java生成PPT文档,支持2010版PPTX新特性

Home Page: https://pptshow.cc

License: Apache License 2.0

Java 100.00%

pptshow's Introduction

pptshow

Language:English(中文

Reference document address

Language:中文文档 English Documents
You can also go to the official website to view the Chinese documentation, the content is consistent and more comfortable to read

Introduction

Java to generate PPT documents toolkit, support the new features of the 2010 version of PPTX

Feel it first

For example, the following PPT is made entirely with this Jar package
Including this video is also generated automatically through the Jar package

example.mp4

Function Support

PPT basic editing functions
  1. PPT multiple pages
  2. PPT background music
  3. PPT switching animation, automatic timing switching
  4. PPT text, picture, shape and other elements insertion support
  5. entrance animation of PPT elements
PPT extended features
  1. PPT to generate pictures (fonts will not be messed up, only available in Windows environment)
  2. PPT generate MP4 video (fonts will not be messed up, only available in Windows environment)
PPT reading
  1. Read information according to the specified PPT page file

10 seconds to get started

You can use maven to add jar package references, or directly download jar packages and manually import

Maven coordinates [recommended]
<dependency>
  <groupId>cc.pptshow</groupId>
  <artifactId>pptshow</artifactId>
  <version>1.3</version>
</dependency>
Download and import manually [not recommended]

Download address:https://s01.oss.sonatype.org/service/local/repositories/releases/content/cc/pptshow/pptshow/1.3/pptshow-1.3.jar

After successful import, create a new Main class, copy the following code and paste it in:

import cc.pptshow.ppt.domain.*;
import cc.pptshow.ppt.element.impl.*;
import cc.pptshow.ppt.show.PPTShow;
import cc.pptshow.ppt.show.PPTShowSide;

public class Main {

   public static void main(String[] args) {
       //Create a new PPT object
       PPTShow pptShow = PPTShow.build();
       //Create a new PPT page
       PPTShowSide side = PPTShowSide.build();
       
       //Create an in-line text object with the text set to Hello World
       PPTInnerText pptInnerText = PPTInnerText.build("Hello World");
       //Create an in-line text style object so that the text color is red
       PPTInnerTextCss pptInnerTextCss = PPTInnerTextCss.build().setColor("FF00000");
       //Binding in-line text and style objects
       pptInnerText.setCss(pptInnerTextCss);
       
       //Create a line text object from in-line text and create a text object from a line text object
       PPTText pptText = PPTText.build(PPTInnerLine.build(pptInnerText));
       //Adding text objects to a PPT page
       side.add(pptText);
       //Add PPT page inside PPT
       pptShow.add(side);
       
       //Output to file
       pptShow.toFile("C:/Users/xxx/Desktop/test.pptx");
   }

}

Jar package description

The common PPT generation process does not rely on system or third-party components for any function
Linux or Windows systems can be used normally
Video and image generation for Windows is achieved by calling Windows Office through vbs, only these two functions depend on Windows system

Licensing Protocol

Apache-2.0 License Agreement
i.e. for commercial use, modification, distribution, proprietary use, private use
However, registration as a trademark is not permitted, and no responsibility or guarantee of availability is given for the program.

pptshow's People

Contributors

qrpcode avatar

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.