I want to save a gt table using the PDF version, as I prefer the styling of the output over the HTML output. However, gt::gtsave() seems to only output tables using the HTML styling. See the examples below:
HTML Output:

PDF Output:

How can render the table using the PDF output and save the render as a .png file so that the file looks like the screenshot above?