marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Getting SIGABRT error while pdf-conversion #515

Open BharathKumarRavichandran opened 5 years ago

BharathKumarRavichandran commented 5 years ago

I did something like this.

let options = {
    format: 'Letter'
};
pdf.create(html, options).toFile(destinationFilePath,(err, res) => {
    if (err){
        console.log('error',err);
        return;
    }
    console.log(res);
});

Also, my old project which was using html-pdf is also now returning SIGABRT error now. Any idea on how to fix this? Or is this a bug in the latest release?