Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Context passthrough for dynamic header and footer #4

Open
danvim opened this issue Jan 21, 2024 · 0 comments
Open

Allow Context passthrough for dynamic header and footer #4

danvim opened this issue Jan 21, 2024 · 0 comments

Comments

@danvim
Copy link
Owner

danvim commented Jan 21, 2024

Current implementation would render dynamic header and footer separately for each page so React Contexts would not penetrate into the dynamic content.

Idea

Instead of calling PdfRenderer.renderOnce, what if we update the header and footer per page and get the contents (perhaps by using React Portals) for each page?

danvim added a commit that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant