Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying footer doesn't work #149

Open
marian-upgiant opened this issue Oct 22, 2023 · 0 comments
Open

Displaying footer doesn't work #149

marian-upgiant opened this issue Oct 22, 2023 · 0 comments

Comments

@marian-upgiant
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant