Skip to content

A nodejs module for converting PowerPoint file into PDF file

License

Notifications You must be signed in to change notification settings

fitraditya/node-ppt2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ppt2pdf

A nodejs module for converting PowerPoint (also Impress) file into PDF file using unoconv

Requirement

Unoconv is required, which requires LibreOffice (or OpenOffice)

Installation

  $ [sudo] npm install ppt2pdf

Usage

var ppt2pdf = require('ppt2pdf');

var options = {
  output: null                    // specified output name (without extension)
  outputdir: __dirname + 'output'   // outputdir must be absolute path
  pagerange: null                 // specified page range to be converted, example: '1' or '1-2'
}; 

ppt2pdf.convert('test.odp', null, function(error, result) {
  if (error) console.log(error);
  else console.log(result);
});

It will return converted file name.

{
  result: 'success',
  message: 'test.pdf'
}

Maintainer

Fitra Aditya

License

MIT

About

A nodejs module for converting PowerPoint file into PDF file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published