Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pdf = require('html-pdf'); var options = { format: 'A4', border: { top: "0.5cm", right: "0.5cm", bottom: "0.5cm", left: "0.5cm" }, timeout: 60000 } pdf.create(html, options).toFile('./photos.pdf', function(err, res){ if (err) return console.log(err); console.log(res); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement