You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried it both for piping the result and saving the file, neither of options doesn't work. Also, tried footerHTML option, both with text parameter and file name. Still nothing. My server running Ubuntu 22.04, node v.12.22.9, Wkhtmltopdf version 0.12.6/
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying generate the pdf with footerCenter option, PDF is generated perfectly, but nothing appears in the footer.
My code is
res.contentType("application/pdf");
const doc = wkhtmltopdf(data,
{
pageSize: "A4",
marginLeft:"20mm",
marginRight:"20mm",
marginTop:"10mm",
marginBottom:"20mm",
footerCenter: 'Test',
//output:'out.pdf'
}
).pipe(res);
//uploadFile('out.pdf');
});
Tried it both for piping the result and saving the file, neither of options doesn't work. Also, tried footerHTML option, both with text parameter and file name. Still nothing. My server running Ubuntu 22.04, node v.12.22.9, Wkhtmltopdf version 0.12.6/
The text was updated successfully, but these errors were encountered: