PHPackages                             joaopaulolndev/filament-pdf-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. joaopaulolndev/filament-pdf-viewer

ActiveLibrary[Image &amp; Media](/categories/media)

joaopaulolndev/filament-pdf-viewer
==================================

Filament package to show pdf document viewer

v3.0.3(2mo ago)104147.2k↑35.7%212MITPHPPHP ^8.2CI passing

Since Jun 22Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/joaopaulolndev/filament-pdf-viewer)[ Packagist](https://packagist.org/packages/joaopaulolndev/filament-pdf-viewer)[ Docs](https://github.com/joaopaulolndev/filament-pdf-viewer)[ GitHub Sponsors](https://github.com/joaopaulolndev)[ RSS](/packages/joaopaulolndev-filament-pdf-viewer/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (23)Used By (2)

Filament package to show pdf document viewer
============================================

[](#filament-package-to-show-pdf-document-viewer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da8e2aa1dc8c61f8108cbe3802a6a173212689a81da3c7db58a82f643d2bb3ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f616f7061756c6f6c6e6465762f66696c616d656e742d7064662d7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joaopaulolndev/filament-pdf-viewer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5c7637234f8140d4e2a219ee575c2c193d461c766da71ed46e9ec83ca26fd268/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f616f7061756c6f6c6e6465762f66696c616d656e742d7064662d7669657765722f72756e2d74657374732e796d6c3f6272616e63683d322e78266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/joaopaulolndev/filament-pdf-viewer/actions?query=workflow%3Arun-tests+branch%3A2.x)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e15efbb2d4741d9300ea7d09e3184407afcb3b6202e462aaf3191ac5a5bc6da2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f616f7061756c6f6c6e6465762f66696c616d656e742d7064662d7669657765722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d322e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/joaopaulolndev/filament-pdf-viewer/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A2.x)[![Total Downloads](https://camo.githubusercontent.com/4dabaf3ba81905a5ec53b1c60714e586b611c706c9baa599e0dce59152e8fd0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f616f7061756c6f6c6e6465762f66696c616d656e742d7064662d7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joaopaulolndev/filament-pdf-viewer)

FilamentPHP package to show pdf documents with records saved in the database or show documents without a database in the form of your resource.

[![Screenshot of Application Feature](https://raw.githubusercontent.com/joaopaulolndev/filament-pdf-viewer/2.x/art/joaopaulolndev-filament-pdf-viewer.jpg)](https://raw.githubusercontent.com/joaopaulolndev/filament-pdf-viewer/2.x/art/joaopaulolndev-filament-pdf-viewer.jpg)

Features &amp; Screenshots
--------------------------

[](#features--screenshots)

- **Form Field:** Show a pdf document viewer in a form field.
- **Infolist Entry:** Show a pdf document viewer in a infolist entry.
- **Support**: [Laravel 11](https://laravel.com) and [Filament 5.x](https://filamentphp.com)

Compatibility
-------------

[](#compatibility)

Package VersionFilament Version1.x3.x2.x4.x3.x5.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require joaopaulolndev/filament-pdf-viewer:^3.0
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-pdf-viewer-views"
```

Usage in form field
-------------------

[](#usage-in-form-field)

```
use Joaopaulolndev\FilamentPdfViewer\Forms\Components\PdfViewerField;

public static function form(Schema $schema): Schema
{
    return $schema
        ->schema([
            PdfViewerField::make('file')
                ->label('View the PDF')
                ->minHeight('40svh')
        ]);
}
```

Usage in infolist entry
-----------------------

[](#usage-in-infolist-entry)

```
use Joaopaulolndev\FilamentPdfViewer\Infolists\Components\PdfViewerEntry;

public static function infolist(Schema $schema): Schema
{
    return $schema
        ->schema([
            PdfViewerEntry::make('file')
                ->label('View the PDF')
                ->minHeight('40svh')
        ]);
}
```

Optionally, you can use anothe methods to set the pdf viewer

```
use Joaopaulolndev\FilamentPdfViewer\Infolists\Components\PdfViewerEntry;

public static function infolist(Schema $schema): Schema
{
    return $schema
        ->schema([
            PdfViewerEntry::make('file')
                ->label('View the PDF')
                ->minHeight('40svh')
                ->fileUrl(Storage::url('dummy.pdf')) // Set the file url if you are getting a pdf without database
                ->columnSpanFull()
        ]);
}
```

Optionally, you can use section to set the pdf viewer

```
use Joaopaulolndev\FilamentPdfViewer\Infolists\Components\PdfViewerEntry;

public static function infolist(Schema $schema): Schema
{
    return $schema
        ->schema([
            Section::make('PDF Viewer')
                ->description('Prevent the PDF from being downloaded')
                ->collapsible()
                ->schema([
                    PdfViewerEntry::make('file')
                        ->label('View the PDF')
                        ->minHeight('40svh')
                        ->fileUrl(Storage::url('dummy.pdf')) // Set the file url if you are getting a pdf without database
                        ->columnSpanFull()
                ]);
        ]);
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [João Paulo Leite Nascimento](https://github.com/joaopaulolndev)
- [Rômulo Ramos](https://github.com/rmsramos)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~1 days

Total

22

Last Release

76d ago

Major Versions

v1.1.0 → v2.1.02026-01-03

v2.1.0 → v3.0.02026-01-20

v1.1.1 → v3.0.12026-02-28

v1.1.2 → v2.1.22026-02-28

v2.1.3 → v3.0.32026-03-04

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bc80e83b4acca3d0efddfb786ec3a1265c7076e398d3a0e164917753e571d4b?d=identicon)[joaopaulolndev](/maintainers/joaopaulolndev)

---

Top Contributors

[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (20 commits)")[![joaopaulolndev](https://avatars.githubusercontent.com/u/11706937?v=4)](https://github.com/joaopaulolndev "joaopaulolndev (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![rmsramos](https://avatars.githubusercontent.com/u/5170473?v=4)](https://github.com/rmsramos "rmsramos (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![agcodex01](https://avatars.githubusercontent.com/u/116094690?v=4)](https://github.com/agcodex01 "agcodex01 (2 commits)")[![SalehHub](https://avatars.githubusercontent.com/u/7434624?v=4)](https://github.com/SalehHub "SalehHub (2 commits)")[![sitesoft-be](https://avatars.githubusercontent.com/u/71026399?v=4)](https://github.com/sitesoft-be "sitesoft-be (1 commits)")[![CharlieEtienne](https://avatars.githubusercontent.com/u/9772943?v=4)](https://github.com/CharlieEtienne "CharlieEtienne (1 commits)")[![a21ns1g4ts](https://avatars.githubusercontent.com/u/11599205?v=4)](https://github.com/a21ns1g4ts "a21ns1g4ts (1 commits)")

---

Tags

laraveljoaopaulolndevfilament-pdf-viewer

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/joaopaulolndev-filament-pdf-viewer/health.svg)

```
[![Health](https://phpackages.com/badges/joaopaulolndev-filament-pdf-viewer/health.svg)](https://phpackages.com/packages/joaopaulolndev-filament-pdf-viewer)
```

###  Alternatives

[awcodes/filament-curator

A media picker plugin for FilamentPHP.

434297.7k19](/packages/awcodes-filament-curator)[joaopaulolndev/filament-edit-profile

Filament package to edit profile

250258.1k34](/packages/joaopaulolndev-filament-edit-profile)[joaopaulolndev/filament-general-settings

Filament package to manage general settings

18129.7k](/packages/joaopaulolndev-filament-general-settings)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4326.5k1](/packages/johncarter-filament-focal-point-picker)[saasykit/laravel-open-graphy

An awesome open graph image (social cards) generator package for Laravel.

13057.0k](/packages/saasykit-laravel-open-graphy)[hugomyb/filament-media-action

Automatically display your media (video, audio, document, image, ...) with an action

56122.2k6](/packages/hugomyb-filament-media-action)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
