...After updating composer, add the ServiceProvider to the providers array in config/app.php. You can optionally use the facade for shorter code. To change the configuration, copy the config file to your config folder and enable it in bootstrap/app.php. You can create a new DOMPDF instance and load a HTML string, file or view name. You can save it to a file, or stream (show in browser) or download. You can change the orientation and paper size, and hide or show errors (by default, errors are shown when debug is on). If you need the output as a string, you can get the rendered PDF with the output() function, so you can save/output it yourself. ...