I got this code from Chat GPT.
I asked it if it could give me code to print a PDF with page breaks.
But I don’t think this will do what I want it to.
For context, I’ve inherited a file which prints data in certain tabs as PDFS, but a user is also to select multiple tabs, so that one PDF...