Artisan · Integration
Artisan integration
At a glance
Section titled “At a glance”Use nextpdf/artisan when your application needs headless Chrome rendering through the Chrome DevTools Protocol (CDP), page import, or low-level PDF inspection. The package extends renderer workflows at runtime. It is not a Laravel Artisan command package.
Section map
Section titled “Section map”| Page | Use it for |
|---|---|
| Overview | Package boundaries and supported workflows. |
| Install | Composer installation and Chrome runtime requirements. |
| Chrome renderer setup | Browser executable and CDP renderer configuration. |
| Quickstart | Your first Chrome-rendered PDF flow. |
| Configuration | Renderer configuration keys and default values. |
| API | Renderer, configuration, result, security policy, importer, and parser APIs. |
| Developer guide | Renderer lifecycle, browser pooling, parsing boundaries, and extension points. |
| Production usage | Browser process management and production operating patterns. |
| Security and operations | HTML input limits, sandbox policy, and resource restrictions. |
| Troubleshooting | Common Chrome and parser failures. |
Primary APIs
Section titled “Primary APIs”| Symbol | Role |
|---|---|
NextPDF\Artisan\ChromeHtmlRenderer | Renders HTML through Chrome CDP into PDF bytes. |
NextPDF\Artisan\ChromeRendererConfig | Provides an immutable renderer configuration object. |
NextPDF\Artisan\ChromeRenderResult | Provides rendered PDF bytes and page dimensions. |
NextPDF\Artisan\PageImporter | Imports an existing PDF page as a form XObject. |
NextPDF\Parser\PdfReader | Reads low-level PDF objects, pages, resources, and revisions. |