You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building conditional headers and footers with dynamic content for different parts of my generated document, storing references inside "id" property of my docDefinition objects, so I can define where a section start/end and call a function conditionally, based on ids properties.
To achieve that, I'm currently looping through my docDefinition array content and stacks, locating where these ids happen and retrieving currentPage from content[i].positions.
The problem is that the positions array is empty sometimes, dependind in wich docDefinition object I stored the id.
I think it would be really interesting to make the created nodes available in the header and footer function, like in pageBreakBefore function, so it would be possible to iterate through tem and locate ids and pageNumbers immediately. Or somehow make the pageBreakBefore function runs synchronously before header/footer functions.
Would you consider making this possible? It would make things much easier to create dynamic content or headers and footers!
Thank you!
The text was updated successfully, but these errors were encountered:
Hello!
I'm building conditional headers and footers with dynamic content for different parts of my generated document, storing references inside "id" property of my docDefinition objects, so I can define where a section start/end and call a function conditionally, based on ids properties.
To achieve that, I'm currently looping through my docDefinition array content and stacks, locating where these ids happen and retrieving currentPage from content[i].positions.
The problem is that the positions array is empty sometimes, dependind in wich docDefinition object I stored the id.
I think it would be really interesting to make the created nodes available in the header and footer function, like in pageBreakBefore function, so it would be possible to iterate through tem and locate ids and pageNumbers immediately. Or somehow make the pageBreakBefore function runs synchronously before header/footer functions.
Would you consider making this possible? It would make things much easier to create dynamic content or headers and footers!
Thank you!
The text was updated successfully, but these errors were encountered: