pagedown icon indicating copy to clipboard operation
pagedown copied to clipboard

add same footer section to each page

Open zackarno opened this issue 4 years ago • 4 comments

Is it possible to make a feature that allows you to add a the same footer to each page (i.e a color bar with a logo)?

zackarno avatar Sep 21 '20 17:09 zackarno

Thanks for the feature request! IMO, the most robust way to implement this feature in pagedown would be to use a CSS preprocessor. This is related to #99. For now, the only mean is to use a custom CSS file.

RLesur avatar Oct 03 '20 20:10 RLesur

@zackarno , I think you could use CSS.

@page {
  @bottom-center {
    content: "My repeated footer"
  }
}

Maybe you can try to format the @bottom-center to fit your needs. In the paged.js documentation, they explain how to add custom content to pages: https://www.pagedjs.org/documentation/07-generated-content-in-margin-boxes/#named-string-classical-running-headersfooters

Regards,

felipecrp avatar Nov 14 '21 00:11 felipecrp

I am also interested in adding different header to odd or even pages. It seems that using @page will add the content to every page even cover. How does pagedown itself implement showing page number on header? Or it just delegates this to pagedjs?

hilaolu avatar Nov 21 '22 14:11 hilaolu

@hilaolu you can use @page:left and @page:right in the css.

felipecrp avatar Feb 23 '23 03:02 felipecrp