gotenberg/gotenberg-php
PHP client for the Gotenberg API to convert documents to PDF using Chromium/LibreOffice. Build requests for URL, HTML, Markdown, and Office files, then stream or save outputs. Compatible with Gotenberg 8.x via client v2.x.
Adds support for the PSR-7 package's 3.0 release. Thanks @mbabker!
This release brings the client up-to-date with the latest Gotenberg version.
New class:
Gotenberg\FacturXNew methods:
$chromium->pdf->facturX$libreoffice->facturX$pdfengines->facturX$pdfengines->injectFacturX->allowPrinting (Chromium, LibreOffice, PDF Engines)->allowCopying (Chromium, LibreOffice, PDF Engines)->allowModifying (Chromium, LibreOffice, PDF Engines)->allowAnnotating (Chromium, LibreOffice, PDF Engines)->allowFillingForms (Chromium, LibreOffice, PDF Engines)->allowAssembling (Chromium, LibreOffice, PDF Engines)See https://github.com/gotenberg/gotenberg/releases/tag/v8.34.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->screenshot->deviceScaleFactorSee https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->embedsMetadata$libreoffice->embedsMetadata$pdfengines->embedsMetadataSee https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
Deprecations:
public function webhook(string $url, string $errorUrl = '') => $errorUrl is now optional and deprecated.See https://github.com/gotenberg/gotenberg/releases/tag/v8.30.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->skipNetworkAlmostIdleEvent$libreOffice->initialView$libreOffice->initialPage$libreOffice->magnification$libreOffice->zoom$libreOffice->pageLayout$libreOffice->firstPageOnLeft$libreOffice->resizeWindowToInitialPage$libreOffice->centerWindow$libreOffice->openInFullScreenMode$libreOffice->displayPDFDocumentTitle$libreOffice->hideViewerMenubar$libreOffice->hideViewerToolbar$libreOffice->hideViewerWindowControls$libreOffice->useTransitionEffects$libreOffice->openBookmarkLevels->webhookEventsUrl (all modules)->correlationId (all modules)$gotenbergApiErrored->getCorrelationIdDeprecations:
->trace — use ->correlationId instead$gotenbergApiErrored->getGotenbergTrace — use ->getCorrelationId insteadSee https://github.com/gotenberg/gotenberg/releases/tag/v8.29.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$libreOffice->nativeWatermarkText$libreOffice->nativeWatermarkColor$libreOffice->nativeWatermarkFontHeight$libreOffice->nativeWatermarkRotateAngle$libreOffice->nativeWatermarkFontName$libreOffice->nativeTiledWatermarkText$pdfEngines->bookmarks$pdfEngines->autoIndexBookmarks$pdfEngines->watermark$pdfEngines->stamp$pdfEngines->rotate$pdfEngines->readBookmarks$pdfEngines->writeBookmarks$chromium->watermarking / $chromium->watermarkFile$chromium->stamping / $chromium->stampFile$chromium->rotatingSee https://github.com/gotenberg/gotenberg/releases/tag/v8.28.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->emulatedMediaFeaturesSee https://github.com/gotenberg/gotenberg/releases/tag/v8.27.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->waitForSelector$chromium->ignoreResourceHttpStatusDomainsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.26.0 for more details.
This release brings PHP 8.5 support.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->encrypt$pdfEngines->encrypting$libreOffice->encrypt$chromium->encrypt$pdfEngines->embed$pdfEngines->embeds$libreOffice->embeds$chromium->embedsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.25.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->generateTaggedPdfSee https://github.com/gotenberg/gotenberg/releases/tag/v8.21.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$libreoffice->updateIndexesSee https://github.com/gotenberg/gotenberg/releases/tag/v8.18.0 for more details.
This release fixes the skipNetworkIdleEvent when setting its argument to false. Thanks @Tugzrida!
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->flatten$pdfEngines->flattening$libreOffice->flattenSee https://github.com/gotenberg/gotenberg/releases/tag/v8.16.0 for more details.
This release reduces the package size by ignoring non mandatory files and folders. Thanks @pieterocp!
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->split$chromium->pdf()->split$libreOffice->splitSee https://github.com/gotenberg/gotenberg/releases/tag/v8.15.0 for more details.
This release brings PHP 8.4 support.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->pdf()->generateDocumentOutlineSee https://github.com/gotenberg/gotenberg/releases/tag/v8.14.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium-> failOnResourceHttpStatusCodes$chromium-> failOnResourceLoadingFailedSee https://github.com/gotenberg/gotenberg/releases/tag/v8.13.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
Updated method:
$chromium->skipNetworkIdleEvent() => $chromium->skipNetworkIdleEvent($skip) (optional parameter).See https://github.com/gotenberg/gotenberg/releases/tag/v8.11.0 for more details.
All Stream arguments (e.g., form files) are now non-mandatory, as files may be downloaded by Gotenberg directly using the downloadFrom form field.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$libreOffice->downloadFrom$chromium->downloadFrom$pdfEngines->downloadFrom$libreOffice->passwordSee https://github.com/gotenberg/gotenberg/releases/tag/v8.10.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$libreOffice->allowDuplicateFieldNames$libreOffice->exportBookmarks$libreOffice->exportBookmarksToPdfDestination$libreOffice->exportPlaceholders$libreOffice->exportNotes$libreOffice->exportOnlyNotesPages$libreOffice->exportNotesInMargin$libreOffice->convertOooTargetToPdfTarget$libreOffice->exportLinksRelativeFsys$libreOffice->exportHiddenSlides$libreOffice->skipEmptyPages$libreOffice->addOriginalDocumentAsStream$libreOffice->quality$libreOffice->maxImageResolutionSee https://github.com/gotenberg/gotenberg/releases/tag/v8.8.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->userAgent$libreOffice->losslessImageCompression$libreOffice->reduceImageResolutionSee https://github.com/gotenberg/gotenberg/releases/tag/v8.7.0 for more details.
Also, you can now pass only one argument to $pdfEngines->merge, thanks @mariusjp!
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->width$chromium->height$chromium->clipSee https://github.com/gotenberg/gotenberg/releases/tag/v8.5.0 for more details.
ChromiumCookie does not serialize null for optional values anymore. Thanks a lot @yanbuatois for the quick fix!
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->cookies$libreOffice->singlePageSheetsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.4.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->metadata$libreOffice->metadata$libreOffice->exportFormFields$pdfEngines->metadata$pdfEngines->readMetadata$pdfEngines->writeMetadataSee https://github.com/gotenberg/gotenberg/releases/tag/v8.3.0 for more details.
This release adds the method singlePage to Chromium PDF conversions, which defines whether to print the entire content in one single page.
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.
GotenbergApiErroed exception has been renamed GotenbergApiErrored - thanks @marlonbasten!NativeFunctionErroed exception has been renamed NativeFunctionErrored - thanks @marlonbasten!Gotenberg::chromium($apiUrl)->pdf()->... and Gotenberg::chromium($apiUrl)->screenshot()->...$chromium->screenshot()->url(...)$chromium->screenshot()->html(...)$chromium->screenshot()->markdown(...)$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!This release makes the method formValue public - thanks @rreynier!
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->pdfa$chromium->pdfua$libreOffice->pdfa$libreOffice->pdfua$pdfEngines->pdfa$pdfEngines->pdfuaDeprecated classes/methods:
$chromium->userAgent$chromium->pdfFormatChromiumExtraLinkTagChromiumExtraScriptTag$libreOffice->nativePdfFormat$libreOffice->pdfFormat$pdfEngines->pdfFormatSee https://github.com/gotenberg/gotenberg/releases/tag/v7.10.0 for more details.
How can I help you explore Laravel packages today?