node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

option height doesn't work

Open romanshul opened this issue 9 years ago • 2 comments

Hello, I'm trying to create long pdf page with height about 8000px, but the result as same as for current format, A4 - default. gulp.task('pdf', function () { var html = fs.readFileSync('build/index.html', 'utf8'); var options = {height: "8000px", base: "file:///D:/usr/www/template/pdf/build/img" }; pdf.create(html, options).toFile('build/businesscard.pdf', function(err, res) { if (err) return console.log(err); console.log(res); }); }); What is wrong?

romanshul avatar Nov 02 '17 14:11 romanshul

I also have same issue now. Have you ever resolved the issue ?

Humphrey0822 avatar Nov 08 '17 05:11 Humphrey0822

I was found the online service that can merge the pages pdfdu.com/pdf-pages-merge.aspx I home it helps you, but the problem is left, I tried other nodejs packages but with the same result.

romanshul avatar Nov 08 '17 14:11 romanshul