question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeat Header in everypage

See original GitHub issue

Hello. I am trying to repeat a header on every page that I export using the library, but I’m having difficulties doing so. In this case my code is:

` <div id=“RoadmapHeader” style={{border: “solid”, height: “100px”, width:“2000px”, backgroundColor: “green”}}>

  </div>

  <div id="RoadmapBody" style={{height: "3000px", width:"2000px", backgroundColor: "blue" }}> 

  </div>`

I want to make sure the div with id=“RoadmapHeader” is repeat on every page before the content of the second is displayed. If you please could assist me I would really appreciate it

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
HackbrettXXXcommented, Sep 9, 2021

Sorry, I don’t have to the time to tell you how your code needs to look like. Try to find help on Stack Overflow, etc.

You can create pull requests on GitHub by creating a fork of this repository, then adding your commits (either on master or a different branch), and then creating a pull request from these commits using either the GitHub client or the website. See e.g. https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request

1reaction
HackbrettXXXcommented, Sep 9, 2021

You can do the following:

  • omit the header from your markup when calling the html function.
  • loop over all pages in the PDF afterwards and add the header to each page.

Currently, there are two issues with this approach:

  • At the moment, you can’t leave space for the header at the top of each page. However, #2977 will add this and will be released within the next days.
  • At the moment, the html function will always render on the first page of the PDF and not the current page (see #3204). This means, you either need to use different functions (like text) to create the headers or wait until its fixed. A pull request for that would be very appreciated 😉
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I repeat my header and footer on each page.
I am using Word 2010 and I am creating a document. I have been using 'Break, Next Page' for the first 4 pages...
Read more >
How To Repeat Table Headers In Word (On Every Page!)
In this tutorial, I will show you how to repeat table headers in Microsoft Word. Specifically, I will show you how to add...
Read more >
How to repeat table header row(s) across pages in Word ...
Select the table header rows you want to repeat, click Layout under Table Tools group, click Repeat Header Rows. doc repeat table header...
Read more >
Repeat Excel header rows on every page - Ablebits
Open the worksheet that you want to print. · Go through steps 2-4 as described in Repeat Excel header rows on every page....
Read more >
How to Repeat Something at the Top of Every Page in Word ...
The header is a repeating section at the top of every page of your document, and is a good place to put a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found