Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. 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