Skip to content

v1.2.0

Latest

Choose a tag to compare

@stevebauman stevebauman released this 16 Oct 13:38
74371e8

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