├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── composer.json └── src ├── BaseConverter.php ├── ConverterInterface.php ├── Manager.php ├── TempFile.php ├── Template.php └── converters ├── Callback.php ├── Dompdf.php ├── Mpdf.php ├── Tcpdf.php └── Wkhtmltopdf.php /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Yii 2 HTML to PDF conversion extension Change Log 2 | ================================================= 3 | 4 | 1.0.7, October 17, 2019 5 | ----------------------- 6 | 7 | - Enh #21: Added support for Yii alias at `Wkhtmltopdf::$binPath` (berosoboy) 8 | 9 | 10 | 1.0.6, July 10, 2019 11 | -------------------- 12 | 13 | - Bug #17: Fixed inability to setup multiple 'fontDir' as array for `Mpdf` converter (klimov-paul) 14 | 15 | 16 | 1.0.5, January 24, 2019 17 | ----------------------- 18 | 19 | - Bug #16: Fixed temporary file removal on Windows (AlexRas007) 20 | 21 | 22 | 1.0.4, September 18, 2018 23 | ------------------------- 24 | 25 | - Bug #12: Fixed inability to setup 'tempDir' and 'fontDir' for `Mpdf` converter (klimov-paul) 26 | - Enh #15: Added method `TempFile::getContent()` (mludvik) 27 | 28 | 29 | 1.0.3, April 9, 2018 30 | -------------------- 31 | 32 | - Enh #6: Options 'coverContent', 'headerHtmlContent' and 'footerHtmlContent' added to `Wkhtmltopdf` (berosoboy, klimov-paul) 33 | - Enh #8: 'wkhtmltopdf' command composition improved ensuring options 'cover' and 'toc' do not utilize global ones (klimov-paul) 34 | 35 | 36 | 1.0.2, February 13, 2018 37 | ------------------------ 38 | 39 | - Enh #3: Added support for mPDF version >= 7.0 (klimov-paul) 40 | - Enh #5: 'wkhtmltopdf' command composition improved adding support for boolean and array options (berosoboy) 41 | 42 | 43 | 1.0.1, November 3, 2017 44 | ----------------------- 45 | 46 | - Bug: Usage of deprecated `yii\base\Object` changed to `yii\base\BaseObject` allowing compatibility with PHP 7.2 (klimov-paul) 47 | 48 | 49 | 1.0.0, May 19, 2016 50 | ------------------- 51 | 52 | - Initial release. 53 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The Yii framework is free software. It is released under the terms of 2 | the following BSD License. 3 | 4 | Copyright © 2015 by Yii2tech (https://github.com/yii2tech) 5 | All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | * Neither the name of Yii2tech nor the names of its 18 | contributors may be used to endorse or promote products derived 19 | from this software without specific prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 | POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
Simple Content
77 | 78 |