Skip to content

Symfony · Integration

Symfony integration

Use nextpdf/symfony to create NextPDF Portable Document Format (PDF) documents through dependency injection, return PDF responses, and generate PDFs asynchronously with Messenger in your Symfony application.

PageUse it for
OverviewPackage boundaries and supported workflows.
InstallComposer installation and bundle registration.
QuickstartYour first controller response.
ConfigurationBundle configuration tree and defaults.
APIFactory, response helpers, Messenger message, handler, and builder contract.
Developer guideDependency injection lifecycle, optional extensions, Messenger, and extension points.
Production usageDeployment and operational patterns.
Security and operationsHeaders, paths, secrets, and message safety.
TroubleshootingCommon failures and diagnostics.
SymbolRole
NextPDF\Symfony\Service\PdfFactoryInjectable factory that returns a freshly configured Document.
NextPDF\Symfony\Http\PdfResponseInline, download, streamed inline, and streamed download responses.
NextPDF\Symfony\Message\GeneratePdfMessageMessenger-safe data transfer object (DTO) for asynchronous generation.
NextPDF\Symfony\Message\PdfBuilderInterfaceBuilder contract for queued document generation.