pdf-creator-node
pdf-creator-node copied to clipboard
Add header only to subsequent pages.
Is there anyway to add a header to every page after the first one? Currently if I add a header to the options and I specify the height but say that the contents should only appear on page two it will still add the padding to the header in the first page and push down my information.
var options = {
format: "A3",
orientation: "portrait",
border: "10mm",
header: {
height: "20mm",
contents: {
2: '<p align="center">{{page}} of {{pages}}</p>',
}
}
};
@RomDa00 did you find any solution for that?
@augustosnk12 No I have not. It doesn't seem possible with this module, you'll have to use something else.
@RomDa00 is it possible with "pure" Puppeteer?