dompdf/wkhtmltopdf (or similar) under the hood, which may need explicit version alignment.storage/app/public) must be configured for downloads.wkhtmltopdf) may introduce system-level dependencies (e.g., binary installations on Linux).dompdf (PHP-only) and wkhtmltopdf (binary), or is one preferred? How are fallbacks handled?livewire:run).dompdf/wkhtmltopdf directly if Livewire integration is unnecessary.dompdf usage, third-party services).composer require xslain/html2media
php artisan vendor:publish --tag=html2media-assets
composer.json constraints).dompdf but may support wkhtmltopdf (confirm via docs/issues).config/filesystems.php).dompdf/wkhtmltopdf (if not already present).<livewire:html2media />).dompdf/wkhtmltopdf updates for breaking changes.config/html2media.php (if published).@page rules).<livewire:html2media> instead of PDF::loadView()").wkhtmltopdf may be CPU-bound).Html2Media::dispatch()).wkhtmltopdf if needed.| Failure Scenario | Impact | Mitigation |
|---|---|---|
PDF engine crashes (wkhtmltopdf) |
Broken PDFs, failed exports | Fallback to dompdf or queue retries. |
| Livewire component timeout | Hanging requests | Increase Livewire timeout or use async queues. |
| Malformed HTML input | Corrupted PDFs or errors | Sanitize input HTML or add validation. |
| Asset loading failures (JS/CSS) | Broken preview/print dialogs | Verify asset paths and browser console logs. |
| Storage permission issues | PDFs not saved/downloaded | Ensure storage/app/public is writable. |
@printed, @downloaded).wkhtmltopdf vs. dompdf rendering).How can I help you explore Laravel packages today?