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.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast