Symfony · Integration
Symfony integration
At a glance
Section titled “At a glance”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.
Section map
Section titled “Section map”| Page | Use it for |
|---|---|
| Overview | Package boundaries and supported workflows. |
| Install | Composer installation and bundle registration. |
| Quickstart | Your first controller response. |
| Configuration | Bundle configuration tree and defaults. |
| API | Factory, response helpers, Messenger message, handler, and builder contract. |
| Developer guide | Dependency injection lifecycle, optional extensions, Messenger, and extension points. |
| Production usage | Deployment and operational patterns. |
| Security and operations | Headers, paths, secrets, and message safety. |
| Troubleshooting | Common failures and diagnostics. |
Primary APIs
Section titled “Primary APIs”| Symbol | Role |
|---|---|
NextPDF\Symfony\Service\PdfFactory | Injectable factory that returns a freshly configured Document. |
NextPDF\Symfony\Http\PdfResponse | Inline, download, streamed inline, and streamed download responses. |
NextPDF\Symfony\Message\GeneratePdfMessage | Messenger-safe data transfer object (DTO) for asynchronous generation. |
NextPDF\Symfony\Message\PdfBuilderInterface | Builder contract for queued document generation. |