danvim / react-pdfmake-reconciler

Writing pdfmake with React JSX using React Reconciler.

Home Page:https://danv.im/react-pdfmake-reconciler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow Context passthrough for dynamic header and footer

danvim opened this issue · comments

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?