In a round about way, I would suppose:
1. Having these documentation as webpages, with proper print CSS
2. SSG them into a bunch of HTML files
3. Serve them quickly with a web server (e.g., python -m http.server)
4. Run a headless Chrome, iterate, and print as PDF