Created
September 4, 2015 14:40
-
-
Save peel/5565d5003f385eaf0993 to your computer and use it in GitHub Desktop.
node/osa script to generate pdf slides out of decks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osa = require('osa'); | |
function generate_pdf(name, dir){ | |
path = Path(dir+"/"+name+".md"); | |
app = Application('Deckset'); | |
doc = app.open(path); | |
pdf = doc.slides.pdfdata; | |
app.quit(); | |
return pdf; | |
} | |
function callback(err, result, log){ | |
console.log(result); | |
return 'done'; | |
} | |
osa(generate_pdf("forgetting-java","/Users/peel/Downloads/wrk/forgetting-java/"), callback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment