firstly I'm not asking for any code just some advice on how i would go about doing this and if its even possible like this.

So I'm making a website where one of the functions is an Educator can select questions from a question pool and then i would like to put those questions in a pre-formatted style(don't know how to explain that, but like a default layout) and save that as a PDF for them to download so they can print it wherever.

The data for the questions will be fetched from a SQl database, I don't have an issue with this, just don't know if maybe it has to be considered when trying to do this xD.

I'm not sure if it could make a page for it and then save that page as a PDF file or what, I'm honestly clueless on how to approach this.

Thanx in advance.