https://github.com/julianxhokaxhiu/typdom3
DOMPDF wrapper for TYPO3
https://github.com/julianxhokaxhiu/typdom3
Last synced: about 1 month ago
JSON representation
DOMPDF wrapper for TYPO3
- Host: GitHub
- URL: https://github.com/julianxhokaxhiu/typdom3
- Owner: julianxhokaxhiu
- License: mit
- Created: 2014-07-22T13:53:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T18:17:15.000Z (over 9 years ago)
- Last Synced: 2025-01-28T14:17:55.376Z (3 months ago)
- Language: PHP
- Size: 9.96 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
typDom3
=====DOMPDF wrapper for TYPO3
## How to use it
1. `cd path/to/your/typo3conf/ext && git clone https://github.com/julianxhokaxhiu/typdom3.git --recursive` or install it [directly from TER](http://typo3.org/extensions/repository/view/typdom3).
2. Enable the "TypDom3" extension inside your Backend
3. Somewhere in your code
```
use \JX\Typdom3\TypDom3;
...
$pdf = new TypDom3();
$pdf->setPaper( 'A4' );
$pdf->setOrientation( 'portrait' );
$pdf->loadHtml( '' );
$thePDF = $pdf->generatePdf();$outputPath = '/tmp/output.pdf';
file_put_contents( $outputPath, $thePDF );
```## Is it ready for production?
Yes, it is.## Is this bug free?
Yes, since it's just a wrapper.## Which is the license of this project?
I like the MIT license. Just use it as you like, but remember to keep the original author(s) in your source code files. Read the [LICENSE](https://github.com/julianxhokaxhiu/typdom3/blob/master/LICENSE) file for more information.