Way to create a PDF

@retool team are there any docs or help available on creating a table and exporting a series of rows from a separate query? Not sure how to loop through records to create separate rows.