laravel-pdf

Generate PDFs from Laravel Blade views or HTML sources.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/rokkay/doc2memo --skill laravel-pdf-rokkay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-pdf
Source: https://github.com/rokkay/doc2memo/tree/main/.junie/skills/laravel-pdf
Command: npx skills add https://github.com/rokkay/doc2memo --skill laravel-pdf-rokkay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables Laravel developers to generate PDFs from Blade views or HTML using spatie/laravel-pdf, covering creation, formatting, saving, downloading, and testing across drivers.

Core Features & Use Cases

  • Create PDFs from Blade views or HTML with configurable formatting (margins, orientation, paper size).
  • Return PDFs as downloads or inline responses, and save to disks or cloud storage for later use.
  • Switch between drivers (browsershot, cloudflare, dompdf) and test outputs within Laravel workflows.

Quick Start

Create a PDF from a Blade view and return it as a downloadable response.

Frequently Asked Questions about laravel-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a PDF from a Laravel Blade view?

To generate a PDF from a Laravel Blade view, this skill renders HTML sources into downloadable or inline responses. It streamlines document delivery by supporting configurable formatting like margins, orientation, and paper size.

Can I save Laravel generated PDFs directly to disk or cloud storage?

Yes, you can save Laravel generated PDFs to disks or cloud storage. This skill supports saving generated files for later use alongside returning PDFs as downloads or inline browser responses.

What's the best way to switch PDF generation drivers in Laravel?

The best way to switch PDF generation drivers in Laravel is using this skill, which supports Browsershot, Cloudflare, and DOMPDF. You can easily swap drivers to match your specific rendering requirements.

Does Laravel PDF generation support custom headers and footers?

Yes, Laravel PDF generation supports custom headers and footers. This skill provides specific hooks for headers, footers, and margins, allowing detailed formatting for documents like invoices and legal reports.

How do I test PDF outputs in my Laravel workflow?

You can test PDF outputs in your Laravel workflow using this skill's built-in testing support. It allows you to verify generated PDF responses within your standard Laravel testing environment.