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

Page header not appearing when final summary causes page break #238

Open
gillsonkell opened this issue Nov 17, 2020 · 2 comments
Open

Page header not appearing when final summary causes page break #238

gillsonkell opened this issue Nov 17, 2020 · 2 comments

Comments

@gillsonkell
Copy link

With this example:

const {Report} = require('./fluentreports/lib/fluentReports.js');

new Report('test.pdf')
  .data({})
  .pageHeader(r => {
    r.print('Page Header');
  })
  .detail(r => {
    for (let i = 0; i < 40; i++) {
      r.print(`Report Detail ${i}`);
    }
  })
  .finalSummary(r => {
    for (let i = 0; i < 10; i++) {
      r.print(`Report Final Summary ${i}`);
    }
  })
  .render(err => {
    if (err) throw err;
  });

I was expecting my page header to appear on the second page caused by my final summary, but the page header only appears on the first page. Is this the actual expectation or a bug?
test.pdf

@beauwest
Copy link
Contributor

Likely a duplicate of #202

@gillsonkell
Copy link
Author

Ah... Interesting. If it's by design that's fine, I can work around it.

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