I'm using html-pdf to convert an SVG file to PNG, and I can't get the output image size to reflect the input size (128x128). Instead it comes with blank space (see image below). I've tried explicitly setting width and height, setting header and footer height (as per this link), but nothing has any effect.
Any suggestions?
Code:
htmlpdf.create(qrcode, { "border": "0", "type": "png"}).toFile(originalname.split(".")[0]+".png", function(err, res) {
if (err) throw err;
console.log(res);
});