Repository navigation
v2.0.0
This release brings the client up-to-date with the Gotenberg 8 version.
See https://github.com/gotenberg/gotenberg/releases/tag/v8.0.0 for more details.
Breaking Changes
- Minimum PHP version is now PHP 8.1.
GotenbergApiErroedexception has been renamedGotenbergApiErrored- thanks @marlonbasten!NativeFunctionErroedexception has been renamedNativeFunctionErrored- thanks @marlonbasten!- The PDF / Screenshot features are now available via
Gotenberg::chromium($apiUrl)->pdf()->...andGotenberg::chromium($apiUrl)->screenshot()->...
New Chromium Methods
- You can capture full-page screenshots using the following three methods, which function similarly to their PDF equivalents:
$chromium->screenshot()->url(...)$chromium->screenshot()->html(...)$chromium->screenshot()->markdown(...)- You may use the following new methods with them:
$chromium->screenshot()->png()->optimizeForSpeed()->...,$chromium->screenshot()->jpeg()->quality(100)->...,$chromium->screenshot()->webp()->....
$chromium->pdf()/->screenshot()->failOnHttpStatusCodes(...)->...: force Gotenberg to return a 409 Conflict response if the HTTP status code from the main page is not acceptable.$chromium->pdf()/->screenshot()->skipNetworkIdleEvent()->...: do not wait for Chromium network to be idle, allowing for faster conversions - thanks @rreynier!