keun 1d95f281f9 (Backend] Section "Communiquer". | il y a 8 ans | |
---|---|---|
.. | ||
classes | il y a 8 ans | |
collations | il y a 8 ans | |
font | il y a 8 ans | |
graph_cache | il y a 8 ans | |
iccprofiles | il y a 8 ans | |
includes | il y a 8 ans | |
patterns | il y a 8 ans | |
qrcode | il y a 8 ans | |
tmp | il y a 8 ans | |
ttfontdata | il y a 8 ans | |
ttfonts | il y a 8 ans | |
.gitignore | il y a 8 ans | |
.travis.yml | il y a 8 ans | |
CHANGELOG.txt | il y a 8 ans | |
CREDITS.txt | il y a 8 ans | |
LICENSE.txt | il y a 8 ans | |
MpdfException.php | il y a 8 ans | |
README.md | il y a 8 ans | |
Tag.php | il y a 8 ans | |
composer.json | il y a 8 ans | |
compress.php | il y a 8 ans | |
config.php | il y a 8 ans | |
config_fonts-distr-without-OTL.php | il y a 8 ans | |
config_fonts.php | il y a 8 ans | |
config_lang2fonts.php | il y a 8 ans | |
config_script2lang.php | il y a 8 ans | |
graph.php | il y a 8 ans | |
lang2fonts.css | il y a 8 ans | |
mpdf.css | il y a 8 ans | |
mpdf.php | il y a 8 ans | |
phpunit.xml | il y a 8 ans | |
progbar.css | il y a 8 ans |
mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancements. mPDF was written by Ian Back and is released under the GNU GPL v2 licence.
Preferred installation method is via composer and its packagist package mpdf/mpdf.
Ensure that you have write permissions set (CHMOD 6xx or 7xx) for the following folders:
/ttfontdata/ - used to cache font data; improves performance a lot
/tmp/ - used for some images and ProgressBar
/graph_cache/ - if you are using JpGraph in conjunction with mPDF
To test the installation, point your browser to the basic example file:
[path_to_mpdf_folder]/mpdf/examples/example01_basic.php
If you wish to define a different folder for temporary files rather than /tmp/ see the note on Folder for temporary files in the section on Installation & Setup in the manual.
If you have problems, please read the section on troubleshooting in the manual.
Online manual is available at https://mpdf.github.io/.
Unit testing for mPDF is done using PHPUnit.
To get started, run composer install
from the command line while in the mPDF root directory
(you’ll need composer installed first).
To execute tests, run vendor/bin/phpunit
from the command line while in the mPDF root directory.
Any assistance writing unit tests for mPDF is greatly appreciated. If you’d like to help, please
note that any PHP file located in the /tests/
directory will be autoloaded when unit testing.