1.2.3 • Published 5 years ago

ppt2svg v1.2.3

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

ppt2svg NPM version

This is Node wrap over pdf2svg and unoconv system packages.

Installation

Debian/Ubuntu:

sudo apt-get install unoconv libreoffice-dev poppler-utils pdf2svg

npm install ppt2svg

Usage

const ppt2svg = require('ppt2svg');

const config = {
  input: 'input.ppt|pptx' - path to a presentation file
  output: 'outputFolder/outputName' - path where to put images, they will be named `${outputFolder}/${outputName}-${1 to presentationLength}.svg`
  optimize: [true|false] (optional, defaults to false)
  optimizationFileSize: starting size for images that should be optimized, set in bytes (optional, defaults to 300*1024)
  pdf: [true|false] (optional, default false) set true if input file is a pdf file
}

ppt2svg(config, (err, presentationLength) => {
  // Handle callback
});

  or

ppt2svg(config)
  .then((presentationLength) => {
    // Do something
  })
  .catch((err) => {
    // Handle error
  })
1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago