Account.Browser Rendering permission and locate your Account ID from your Cloudflare dashboard URL.
Using Laravel PDF
Spatie’s Laravel PDF package provides a convenient wrapper around Cloudflare’s Browser Rendering API via its built-in Cloudflare driver. No Node.js or Chrome binary is required on your instances. First, install the package via Composer:Pdf facade. For example, the following controller method renders a view as a PDF and streams it as a download to the browser:
Manual Usage
If you prefer to call the Cloudflare API directly without an additional dependency, add acloudflare entry to your services.php config file:
Http facade. The following example demonstrates how to generate HTML from a view and stream the response as a downloadable PDF to the browser from a controller method:

