Skip to content

Displaying footer doesn't work #149

Description

@marian-upgiant

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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions