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

Add header only to subsequent pages. #88

Open
RomDa00 opened this issue Aug 19, 2022 · 3 comments
Open

Add header only to subsequent pages. #88

RomDa00 opened this issue Aug 19, 2022 · 3 comments

Comments

@RomDa00
Copy link

RomDa00 commented Aug 19, 2022

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>',
      }
  }
};
@augustosnk12
Copy link

@RomDa00 did you find any solution for that?

@RomDa00
Copy link
Author

RomDa00 commented Oct 11, 2022

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

@augustosnk12
Copy link

@RomDa00 is it possible with "pure" Puppeteer?

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

2 participants