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

Laravel Pdf Laravel Package

spatie/laravel-pdf

Generate PDFs in Laravel from Blade views with a fluent API. Choose drivers like Chromium (Browsershot), Gotenberg, Cloudflare, WeasyPrint, or DOMPDF. Save to disk or return as a response, with support for modern CSS and paged media.

View on GitHub
Deep Wiki
Context7
2.5.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-pdf/compare/2.4.0...2.5.0

2.4.0

Add Laravel 13 support

2.3.0

What's new

  • Make generatePdfContent() public on PdfBuilder, allowing users to get raw PDF content directly without saving to a file
2.2.1

What's Changed

  • Default write_options_to_file to true to prevent "Argument list too long" errors when headers/footers contain large content (e.g. inline images)

Fixes #317

2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/2.1.1...2.2.0

2.1.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/2.1.0...2.1.1

2.0.0

What's new

v2 introduces a driver-based architecture, allowing you to choose between different PDF generation backends.

New drivers

  • Cloudflare - Generate PDFs using Cloudflare's Browser Rendering API
  • DomPdf - Generate PDFs using DomPdf (no external binary required)
  • Browsershot - Remains the default driver

New features

  • Queued PDF generation via saveQueued()
  • PDF metadata support (title, author, subject, keywords, creator, creation date)
  • Runtime driver switching with ->driver('dompdf')
  • Custom driver support

Breaking changes

  • spatie/browsershot must now be explicitly required via Composer
  • getBrowsershot() has been removed — use withBrowsershot() instead
  • Config file structure has changed (new driver key)
  • Laravel 10 support has been dropped

See the full upgrade guide for migration steps.

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.9.0...2.0.0

1.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.8.0...1.9.0

1.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.7.1...1.8.0

1.7.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.7.0...1.7.1

1.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.6.0...1.7.0

1.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.6...1.6.0

1.5.6

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.5...1.5.6

1.5.5

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.4...1.5.5

1.5.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.3...1.5.4

1.5.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.2...1.5.3

1.5.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.1...1.5.2

1.5.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.5.0...1.5.1

1.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.4.0...1.5.0

1.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.3.0...1.4.0

1.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.2.0...1.3.0

1.2.0
1.1.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.1.2...1.1.3

1.1.2
  • fix download assertion docs

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.1.0...1.1.2

1.1.1
  • fix required PHP version

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.1.0...1.1.1

1.1.0
1.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/1.0.0...1.0.1

1.0.0
  • initial release
0.0.5

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-pdf/compare/0.0.4...0.0.5

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport