Weave 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

Livewire Pdf Preview Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for document-heavy workflows. This package lets a Laravel app render PDFs in the browser via a bundled 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."
  • Build vs. buy for PDF viewing. Choosing this package is effectively a decision to buy a thin, maintained wrapper instead of owning the 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.
  • Roadmap sequencing for document features. Because rendering happens client-side, previews ship without added server CPU or a conversion queue. That makes "preview" a low-cost first step before more expensive roadmap items (annotation, redaction, OCR, e-signature) that would require a different class of tool.
  • Deployment and security architecture. The new optional custom PDF worker path is the most decision-relevant item in this release. It lets you serve 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.
  • Vendor upgrade policy. 1.0.2 is patch-level with no breaking changes, so it's a routine bump. But it does confirm the package is the thing that decides when your app gets upstream pdf.js security and rendering fixes — worth a standing decision on how fast you absorb those patches.

When to Consider This Package

Adopt when:

  • You need in-browser PDF display or text extraction inside a Laravel app and want Blade/Livewire-friendly integration rather than hand-rolling a JS bundle.
  • Your team has no front-end build step for this app, or you deliberately want to keep one out.
  • You want upstream pdf.js patched for you rather than tracking releases and worker-file wiring yourself.
  • Your deployment has CSP, CDN, or offline constraints — the new custom worker path parameter makes this viable where a hardcoded asset path would not be.
  • The document surface is read-only viewing (invoices, statements, contracts, reports, course materials).

Look elsewhere when:

  • You need server-side PDF work — generation, merging, splitting, stamping, text extraction at scale, OCR. That's a PHP-native library or a managed service, not a browser renderer.
  • You need authoring or annotation — form filling, comments, redaction, digital signatures. Those are commercial viewer SDK territory.
  • Your security review forbids vendored third-party JS in the app tree and the worker-path override isn't enough to satisfy it.
  • You need guaranteed long-term API stability — this is still a 1.0.x line, and 1.0.2 renamed the installation command. Cosmetic, but a signal that naming and ergonomics are still settling; pin versions and read changelogs.
  • Accessibility and print fidelity are hard requirements — validate against your specific PDFs before committing; pdf.js rendering quality is good but not identical to native viewers.

How to Pitch It (Stakeholders)

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.

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.
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo