pdf-creator-node icon indicating copy to clipboard operation
pdf-creator-node copied to clipboard

Add header only to subsequent pages.

Open RomDa00 opened this issue 2 years ago • 3 comments

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 avatar Aug 19 '22 23:08 RomDa00

@RomDa00 did you find any solution for that?

augustosnk12 avatar Oct 08 '22 00:10 augustosnk12

@augustosnk12 No I have not. It doesn't seem possible with this module, you'll have to use something else.

RomDa00 avatar Oct 11 '22 16:10 RomDa00

@RomDa00 is it possible with "pure" Puppeteer?

augustosnk12 avatar Oct 13 '22 11:10 augustosnk12