um, so, you think you want to generate a 30,000 page PDF and then rip it / print it ?
Are you nuts ? Better said, have you ever tried to print a 30,000 page PDF ?
No one does that. PDF/VT (or find a app and printing system that supports PPML)
https://www.pdflib.com/pdf-knowledge-base/pdfvt/