Printing multiple document in separate pdf

Hello all,

I need to print in separate pdf a document for each student enrolled in a course.
Students are stored in a child table of the course.
How Can I print in a custom print format a pdf for each student and set a download to a zip containing all printings ?

Thanks

Examine the URL of a PDF print in the browser. It contains the details of the document you want to print.

Using that scheme. substitute the name o the document you require, then use something like curl or wget to load the document locally, then compress is as required.

Thanks for your response but my coworker cannot use curl, I already setup a button in custom script to print a document with all students from the course doctype.
My need is to provide them a zip with separate files from this button.