-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
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/
Metadata
Metadata
Assignees
Labels
No labels