Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Add the Possibility of Page Grouping #5268

Open
Trodrige opened this issue Oct 15, 2022 · 1 comment
Open

Add the Possibility of Page Grouping #5268

Trodrige opened this issue Oct 15, 2022 · 1 comment

Comments

@Trodrige
Copy link

Description
How can we add the possibility of creating a PDF with 15 pages, say, with all the pages numbered from 1 to 5?

So, we have a single PDF file that is generated with 15 pages, but the pages are numbered based on particular criteria (the value of a variable). This is particularly useful when you have to do this for pdf files that have many pages. If it's just a tiny file then we can always create them separately and join them somehow.

Example
For example, we have a list of footballers in the USA from 3 states Ohio, Texas, and Florida. We've listed these footballers in order of their states. We want all the pages carrying Ohio players to be numbered from 1 to *, those for Texas 1 to *, etc, but all the 3 lists should be generated as one PDF. The variable here is the state!

So if each state has players which can fill up 5 pages, then we'll have a 15-page pdf number 1-5 for Ohio, 1-5 for Texas, and 1-5 for Florida.

I would be happy to explain any doubts and look at any questions 😎

@Sicos1977
Copy link

Sicos1977 commented Oct 20, 2022

wkhtmltopdf is to make pdf's from html not for grouping PDF pages. If you want that then you are better of with qpdf --> https://qpdf.readthedocs.io/en/stable/

https://qpdf.readthedocs.io/en/stable/cli.html#page-ranges

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants