Actually Chrome does everything. Not via command-line switches however, you need to use the DevTools protocol. For example using Playwright. You get PDFs and PNGs of any size and resolution (PPI).
And I guess this is exactly what this service does under the hood.
And I guess this is exactly what this service does under the hood.