Replies: 1 comment 2 replies
-
We would be very interested in this idea. The lack of running headers for chapters is one of the reasons we cannot use react-pdf right now since we are trying to bring our content as close to a printed version as possible. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Per the docs on control of page wrapping, we can use the
fixed
prop to make running components appear on every page of a document for things such as page numbers.But what if we have something we don't want to show the same on every page, Such as running headers for chapters or glossary headers? Or something we don't want outside the bounds of a container nested in the document, like running header & footer rows for long tables which run over multiple pages?
I think a declarative solution for all of these which would make for a minimal expansion of the API is named flows for establishing contexts for fixed components.
In practice could look something like this:
Alternate API to additionally allow flowing non-fixed/repeating components into containers:
Let me know if you think this is a good idea, and thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions