mso-pdf
v1.0.2
Published
Uses interop to convert Word, PowerPoint and Excel documents to a PDF for previewing using PDF.js
Downloads
214
Maintainers
Readme
ToPDF
This is likely extremely poorly written, but as is life
This utility converts word, excel and powerpoint documents to pdf using the Excel/Word/PowerPoint interop libraries.
Usage
const toPdf = require('mso-pdf')
var source = "C:\\Users\\sancarn\\Documents\\TestToPDF.xlsx"
var destination = "C:\\Users\\sancarn\\Documents\\TestToPDF.pdf"
toPdf.convert(source,destination,function(errors){
if(errors) console.log(errors)
console.log(destination + " converted")
})