Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Chrome Pdf Bundle Laravel Package

dreadnip/chrome-pdf-bundle

Symfony bundle that uses chrome-php/chrome to render HTML to PDF via Chrome/Chromium. Configure the Chrome binary via env, then generate PDFs from HTML with the PdfGenerator service or customize via the BrowserFactory for advanced options.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dynamic PDF Generation for Core Workflows: Enables server-side PDF creation (e.g., invoices, contracts, or reports) without relying on external APIs, reducing latency and costs. Aligns with roadmaps for self-service tools (e.g., "Generate PDF" buttons in admin panels).
  • Legacy System Modernization: Replaces outdated PDF libraries (e.g., TCPDF, FPDF) or clunky client-side solutions (e.g., jsPDF) with a modern, maintainable stack. Supports Symfony 8/Laravel 10+ migrations.
  • Feature Flags for "Print" Functionality: Foundation for A/B testing or phased rollouts of PDF features (e.g., "Download as PDF" toggles in UI).
  • Multi-Tenant PDF Customization: Centralized PDF generation allows tenant-specific templates (e.g., branded invoices) via dynamic HTML/Blade templates.
  • Cost Avoidance: Eliminates subscriptions to SaaS PDF services (e.g., PDFShift, Deckle) for high-volume use cases (e.g., >10K PDFs/month).

When to Consider This Package

  • Adopt if:

    • Your Laravel app requires high-fidelity PDFs (e.g., tables, charts, or JavaScript-rendered content) that simple libraries (Dompdf, Snappy) cannot handle.
    • You need Symfony 8/Laravel 10+ compatibility and want to avoid forking or maintaining legacy code.
    • PDF generation is a critical path (e.g., invoices, legal documents) where reliability and accuracy are non-negotiable.
    • Your team prefers open-source with active maintenance (last release: 2026-01-13; Symfony 8 support added in v0.7.0).
    • You’re generating PDFs from dynamic templates (Blade, Twig) with CSS/JS dependencies.
  • Look elsewhere if:

    • You need sub-millisecond PDFs (this uses Chrome Headless; consider Dompdf or PrinceXML for static content).
    • Your budget allows for managed services (e.g., AWS Lambda + Chrome via API) to offload infrastructure.
    • You’re locked into PHP 8.0 or older (Symfony 8 requires PHP 8.1+).
    • Your use case is batch processing (e.g., 100K+ PDFs/day); consider distributed solutions like Celery + Chrome workers.
    • You lack Chrome/Chromium in your deployment environments (e.g., serverless, Docker constraints).

How to Pitch It (Stakeholders)

For Executives: "This package lets us generate PDFs in-house—like invoices or reports—without paying for third-party APIs. For example, [Competitor Y] reduced PDF costs by 70% by replacing a SaaS tool with a similar open-source solution. It’s a low-risk way to own this capability while supporting our upgrade to Laravel 10. The bundle is actively maintained (last update: Jan 2026) and integrates seamlessly with our stack."

For Engineering: *"Chrome-PDF-Bundle is a Laravel-friendly wrapper for Headless Chrome’s PDF generation. Key advantages:

  • No client-side JS needed: Renders dynamic Blade/Twig templates server-side with full CSS/JS support.
  • Symfony 8 ready: Future-proof for Laravel 10+ with minimal effort.
  • Extensible: Customize Chrome flags, headers, or PDF options via the PdfGenerator service.
  • Lightweight: Only pulls in Chrome when used (unlike monolithic tools like wkhtmltopdf).

Tradeoffs:

  • Slower than Dompdf for simple PDFs (~2–5x latency).
  • Requires Chrome/Chromium in deployment environments. Recommended for invoices, dashboards, or anything needing accurate rendering."*

For Design/Product: *"This solves the ‘PDFs look broken’ problem by using real Chrome rendering. For example:

  • Invoices: Tables, logos, and dynamic data render perfectly.
  • Reports: Charts (via Chart.js) or interactive elements (e.g., filters) appear as intended.
  • Certificates: Custom fonts/CSS (e.g., watermarks) work without hacks. No more ‘view in browser’ workarounds—just reliable, branded PDFs."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
althinect/enum-permission
andydefer/laravel-actions
aimeos/prisma
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor