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.

page-footer not working

See original GitHub issue

Hi guys !

First of all, thank you for your amazing work !

I try to implement the page-footer in my pug document as your example :

template#page-footer
  style(type='text/css').
    .pdfheader {
      font-size: 10px;
      font-family: Helvetica;
      font-weight: bold;
      width: 1000px;
      border-top: 1px solid black;
      margin-left: 10%;
      margin-right: 10%;
      padding-top: 1mm;
      margin-bottom: -1mm;
      text-align: center;
    }
  
  .pdfheader Page #[span.pageNumber] / #[span.totalPages]

But nothing appears on my pdf and I don’t have any errors in my console. I’m on Antergos Linux.

Do you have any idea ?

Cheers,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
osadasamicommented, Oct 17, 2018

I delete old version with npm r -g relaxedjs Install new version npm i -g relaxedjs@0.2.0

Then I have tried this example and it works. page-footer shows in pdf.

But I always need to write styles under the template

template#page-header
  style(type='text/css').
    .header {
      font-size: 10px;
    }
  .header I appear at the top of the page

Without styles I can’t see template. And write styles in scss doesn’ help.

Video example

1reaction
osadasamicommented, Oct 10, 2018

I install relaxed 0.1.6 with npm i -g relaxedjs@0.1.6 Check version relaxed --version > 0.1.6 But template#page-header and template#page-footer still doens’t work _temp.htm includes templates but pdf doesn’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

css footer not displaying at the bottom of the page
In order to fix this, you need to make sure that the footer gets 'pushed' down the full height of the page (minus...
Read more >
Why isn't my footer at the bottom? - CSS-Tricks
If you can be sure that the content of a webpage will extend further than the height of the user's browser window, then...
Read more >
Header/Footer not showing in Pages - Apple Community
Header/Footer not showing in Pages. I need to add a page number to the top right of my document. In Document settings, both...
Read more >
The Footer isn't duplicating on every page for several documents
If you open the document and press Ctrl-A, then Alt-P-S-P to open the Page Layout dialogue and choose the Layout tab and either...
Read more >
How to keep your footer where it belongs ? - freeCodeCamp
When working with dynamic content that includes a footer, a problem sometimes occurs where the content on a page is not enough to...
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