pagedown
pagedown copied to clipboard
add same footer section to each page
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)?
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.
@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,
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 you can use @page:left
and @page:right
in the css.