Just “Print to PDF” it.
I’m no longer implementing this long flow with tons of work on each hop.

Instead, I’m just formatting the data from the user’s request and then will place a nice “Print to PDF” button on top. A modern web browser will be happy to take this incredibly complex piece of work and make it look like trivial.

Best regards!
