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

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.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php