A nodejs module for converting PowerPoint (also Impress) file into PDF file using unoconv
Unoconv is required, which requires LibreOffice (or OpenOffice)
$ [sudo] npm install ppt2pdf
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'
}
MIT