Simple function that lets you easily convert a HTML string to a PDF.
\Typesetsh\createPdf($html, \Typesetsh\UriResolver::all())->toFile('test.pdf');
Last updated 2 months ago