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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware