Printing a dash table to PDF

Hi! What is the easiest way to print a page with multiple tables to a PDF? Currently having issues as printing from browser doesn’t automatically resize.

do you have a sample code which can you share