Skip to content

Gotenberg · Integration

Gotenberg integration

Use nextpdf/gotenberg when you delegate conversion to a Gotenberg service. It is a good fit for office documents and HyperText Markup Language (HTML)-to-Portable Document Format (PDF) pipelines that should run outside the PHP process.

PageUse it for
OverviewPackage boundary and supported workflows.
InstallComposer installation and Gotenberg service prerequisites.
QuickstartYour first conversion flow.
ConfigurationEndpoint, timeout, and security configuration keys.
APIBridge, configuration, payload, result, parser, office format, and pinned transport application programming interfaces (APIs).
Developer guideService boundary, payload construction, and extension points.
Production usageDeployment and operational patterns.
Security and operationsServer-side request forgery (SSRF) controls, Multipurpose Internet Mail Extensions (MIME) handling, size limits, and pinned transport.
TroubleshootingCommon conversion and service failures.
SymbolRole
NextPDF\Gotenberg\GotenbergBridgeConverts input with a Gotenberg service.
NextPDF\Gotenberg\GotenbergConfigImmutable service configuration.
NextPDF\Gotenberg\GotenbergConvertPayloadConversion request payload.
NextPDF\Gotenberg\GotenbergConvertResultConverted PDF bytes and response metadata.
NextPDF\Gotenberg\OfficeFormatSupported office-document format enum.