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

Mpdf Bundle Laravel Package

akyos/mpdf-bundle

View on GitHub
Deep Wiki
Context7

Installation

Using Composer (Symfony 2.x, Symfony 3.0.x)

  • Run a command
  • Add a new line to app/AppKernel.php:

Using deps-file (Symfony 2.0.x)

  • Add a new entry to your deps file:
  • Add a new line to app/AppKernel.php:
  • Add a new line to app/autoload.php:
  • Run a command

A Quick Start guide

How to create a Response object

This small example creates a PDF document with format A4 and portrait orientation:

Generate a variable with PDF content

Sometimes it is necessary to get a variable which content is PDF document.

How to get an instance of \mPDF class

If you would like to work with mPDF class itself, you can use a getMpdf method:

Additional options

Additional options might be passed via the second argument:

Detailed description is available on official manual page: https://mpdf.github.io/

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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums