Skip to content

Artisan · Integration

Artisan integration

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.

PageUse it for
OverviewPackage boundaries and supported workflows.
InstallComposer installation and Chrome runtime requirements.
Chrome renderer setupBrowser executable and CDP renderer configuration.
QuickstartYour first Chrome-rendered PDF flow.
ConfigurationRenderer configuration keys and default values.
APIRenderer, configuration, result, security policy, importer, and parser APIs.
Developer guideRenderer lifecycle, browser pooling, parsing boundaries, and extension points.
Production usageBrowser process management and production operating patterns.
Security and operationsHTML input limits, sandbox policy, and resource restrictions.
TroubleshootingCommon Chrome and parser failures.
SymbolRole
NextPDF\Artisan\ChromeHtmlRendererRenders HTML through Chrome CDP into PDF bytes.
NextPDF\Artisan\ChromeRendererConfigProvides an immutable renderer configuration object.
NextPDF\Artisan\ChromeRenderResultProvides rendered PDF bytes and page dimensions.
NextPDF\Artisan\PageImporterImports an existing PDF page as a form XObject.
NextPDF\Parser\PdfReaderReads low-level PDF objects, pages, resources, and revisions.