Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2aa96d1
commit cf31e23
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# mPDF Library Package for Joomla! CMS | ||
|
||
## Requirements | ||
|
||
* Joomla! 3+. | ||
* mPDF requirements: [https://github.com/mpdf/mpdf](https://github.com/mpdf/mpdf). | ||
|
||
## Installation | ||
|
||
Download the package of the latest release on [https://github.com/cmextension/mpdf/releases](https://github.com/cmextension/mpdf/releases), install it with Joomla! Extension Manager just like any other Joomla! extensions. | ||
|
||
## Usage | ||
|
||
In your Joomla! extension's code: | ||
|
||
``` | ||
jimport('mpdf.mpdf'); | ||
$html = '<h1>Hello World!</h1>'; | ||
$mpdf = new \Mpdf\Mpdf(); | ||
$mpdf->WriteHTML($html); | ||
$mpdf->Output(); | ||
``` | ||
|
||
Online manual of mPDF is available at [https://mpdf.github.io/](https://mpdf.github.io/). | ||
|
||
## Development | ||
|
||
* Clone this repository. | ||
* Go to `mpdf` folder. | ||
* Run `composer install` to install mPDF. | ||
|
||
## License | ||
|
||
GNU General Public License Version 2. |