Skip to content

Add PageNumber by Section methods in PageContext and Dynamic#482

Open
simusr2 wants to merge 2 commits intoQuestPDF:mainfrom
simusr2:main
Open

Add PageNumber by Section methods in PageContext and Dynamic#482
simusr2 wants to merge 2 commits intoQuestPDF:mainfrom
simusr2:main

Conversation

@simusr2
Copy link
Contributor

@simusr2 simusr2 commented Feb 7, 2023

I needed to do checks based on page number in the section context writing Dynamic components.

In particular i need to check, in a Dynamic component placed in the body of the page, if the current page is the first or the last one of current section.

To avoid duplication of logic I created PageNumber by section methods in PageContext and then called them from TextExtensions (already existing methods) and in Dynamic (new methods).

This PR satisfies #469 discussion.

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

Successfully merging this pull request may close these issues.

1 participant