Repository navigation
Added
- A Gotenberg driver for capturing PNG, JPEG, and PDF files through a remote service using the existing fluent API. Thanks @hosmelq! #7
use DirectoryTree\Screenshot\Facades\Screenshot;
Screenshot::driver('gotenberg')
->view('invoices.preview', ['invoice' => $invoice])
->javascript()
->pdf()
->save(storage_path('app/invoice.pdf'));Requires Gotenberg 8.38 or later. The capture's JavaScript setting must match the service. See the Gotenberg documentation for configuration and supported options.
Full Changelog: v1.1.1...v1.2.0