Instead of including a view.php you could just use $content = view('path/to/template', $variables)->render() to render a blade template and return it as a string.
Since you installed the library with composer and it has an autoload section you should need to manually include the library.
Instead of using output buffering you can pass 'S' as the second parameter to the Output() method to have it return the pdf content as a string rather than outputting it directly. Then you can use it as the content for your response for a more Laravel way of doing it.
$pdf= $html2pdf->Output('', 'S'); // The filename is ignored when you use 'S' as the second parameter.
return response($pdf)
->header('Content-Type', 'application/pdf')
->header('Content-Length', strlen($pdf))
->header('Content-Disposition', 'inline; filename="example.pdf");
Once you've gotten that working I'd extract as much as possible to a separate class.
You can have this class be responsible for all of the interactions with HTML2PDF.
It would return the pdf content as a string which you can pass along to the response.
This would also make it reusable in case you wanted to do something like send the pdf as an attachment in an email or something.