Skip to content

Conversation

@Lure5134
Copy link

@Lure5134 Lure5134 commented Oct 1, 2025

Fixes: QuestPDF#378

Now by calling document.GeneratePdf, it is possible to get the total number of pages that were generated.

byte[] pdf = document.GeneratePdf(out int pageNumbers)

Original pr: QuestPDF#871

@moorbren
Copy link

moorbren commented Oct 1, 2025

Damn dude, nice to see you start this up.

You know what's the licensing restrictions on all the open PRs on the main QuestPDF library? Would be great to pull some of that in here, that guy seems to have been completely ignoring any issues / community code for over a year now.

@Lure5134
Copy link
Author

Lure5134 commented Oct 1, 2025

I searched for it. For open PRS, the license at the time of the commit counts. Therefore, it would be permissible to cherry-pick all open PRS that don't have a commit after the license change. Are you missing something specific?

@lol768 lol768 merged commit 6d5dd26 into FossPDF:main Jan 3, 2026
@Lure5134 Lure5134 deleted the add-page-number-foss-pdf branch January 3, 2026 22:37
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.

Get Page Count Without Writing to Text

3 participants