dante918/livewire-pdf-preview
Livewire PDF Preview provides a reusable Livewire component for embedding and viewing PDF documents in Laravel applications. It supports configurable viewer controls, responsive sizing, and simple Blade integration, making it easy to add interactive PDF previews without building a custom viewer.
pdf.js/pdf.worker.js without standing up a Node asset pipeline. That directly supports decisions like "ship an in-app invoice/contract/report preview this quarter" versus "link out to a download."pdf.js vendoring, version pinning, and worker wiring yourself. Release 1.0.2 is a good illustration of the value: upstream pdf.js was bumped to the newest version and a worker-path override was added — maintenance work your team now doesn't have to schedule.pdf.worker.js from a CDN, a self-hosted path, or a tenant-specific location — which unblocks CSP-strict environments, air-gapped/on-prem installs, and multi-tenant setups where assets can't live under a shared vendor/ route.pdf.js security and rendering fixes — worth a standing decision on how fast you absorb those patches.Adopt when:
pdf.js patched for you rather than tracking releases and worker-file wiring yourself.Look elsewhere when:
pdf.js rendering quality is good but not identical to native viewers.For executives: This is a small, low-risk package that lets us show PDFs inside the product without new infrastructure or a front-end build pipeline. It removes a "we'd have to build a viewer" objection from the roadmap and shifts rendering to the user's browser, so it costs us no extra server capacity. The latest patch (1.0.2) keeps the underlying rendering engine current with upstream fixes — including security-relevant ones — and adds a configuration option that lets us host the PDF worker from a CDN or our own path, which matters for our security posture and for on-prem customers. No breaking changes; patch-level upgrade.
For engineering: 1.0.2 bumps pdf.worker.js/pdf.js to the newest upstream release, adds an optional custom worker path (useful for CSP compliance, CDN offload, multi-tenant asset isolation, and offline installs), and renames the install command for clarity — update any onboarding docs or scripts that reference the old name. Integration surface is thin, so the upgrade is a dependency bump plus optionally setting one config value. Two things to own: we inherit the package's cadence for upstream pdf.js security patches, so put it on the dependency-review list, and we should pin the version given the 1.0.x naming churn. Confirm the worker path config is set correctly in CSP-restricted and multi-tenant environments before rollout.
How can I help you explore Laravel packages today?