laravel-pdf

Generate PDF documents from Blade views or HTML in Laravel.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/jonaaix/laravel-livewire-base --skill laravel-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-pdf
Source: https://github.com/jonaaix/laravel-livewire-base/tree/main/.claude/skills/laravel-pdf
Command: npx skills add https://github.com/jonaaix/laravel-livewire-base --skill laravel-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables Laravel applications to generate PDFs from Blade templates or HTML, simplifying document creation and distribution in web apps.

Core Features & Use Cases

  • Generate PDFs from Blade views or raw HTML
  • Configure formatting (margins, orientation, paper size) and headers/footers
  • Save, download, inline display, or queue PDFs using Browsershot, Cloudflare, or DOMPDF drivers
  • Test PDF generation in development and CI environments

Quick Start

Generate a PDF from a Blade view and save it to disk with default settings.

Frequently Asked Questions about laravel-pdf

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

FAQPage Schema
How do I generate PDF documents from Blade views in Laravel?

You can generate PDF documents from Blade views in Laravel by rendering HTML templates and converting them using drivers like DOMPDF or Browsershot. This Skill handles formatting, saving, downloading, and queuing PDFs directly within typical Laravel workflows.

Can I configure PDF margins, orientation, and paper size in Laravel?

Yes, you can configure PDF margins, orientation, and paper size in Laravel. This Skill supports applying functional formatting requirements to your PDF generation, including setting headers and footers via environment variables or config files.

Does this Laravel PDF generation approach support Browsershot and DOMPDF?

Yes, this Laravel PDF generation approach supports Browsershot and DOMPDF, alongside Cloudflare drivers. It allows you to apply multiple drivers to formatting, saving, downloading, inline viewing, or queuing PDFs across typical Laravel workflows.

What is the best way to queue PDF generation in Laravel?

The best way to queue PDF generation in Laravel is using a driver like Browsershot or DOMPDF to handle heavy rendering asynchronously. This Skill enables queuing PDFs across multiple drivers with robust validation and error handling.

Can I display PDFs inline instead of downloading them in Laravel?

Yes, you can display PDFs inline instead of downloading them in Laravel. This Skill supports inline viewing alongside saving and downloading, allowing you to output PDF documents from Blade views or raw HTML directly to the browser.