Skip to content

Instantly share code, notes, and snippets.

@roycrxtw
Created March 17, 2017 16:26
Show Gist options
  • Save roycrxtw/5518821861b7e784ef3cdb85c6e4c058 to your computer and use it in GitHub Desktop.
Save roycrxtw/5518821861b7e784ef3cdb85c6e4c058 to your computer and use it in GitHub Desktop.
var pdfOptions = {format: 'Letter'}; //輸出成Letter size(216 x 279 mm)
pdf.create(html, pdfOptions).toFile('./weather.pdf', function(err, result){
if(err){
console.log('error in pdf.create(), err=', err);
}
console.log('result=', result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment