Skip to content

Commit

Permalink
1.1.0 - update mpdf/mpdf
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnderson684 committed Jan 25, 2023
1 parent e53cef7 commit 45e53a7
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 11 deletions.
125 changes: 117 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== WooCommerce Print Orders mPDF engine for PrintNode ===
Contributors: David Anderson
Requires at least: 4.5
Tested up to: 5.9
Tested up to: 6.1
License: MIT
Requires PHP: 5.6

Expand All @@ -19,6 +19,10 @@ PHP >= 5.6.0 is required (reflecting the versions supported by the mPDF library)

== Changelog ==

= 1.1.0 - 2023/01/25 =

* TWEAK: Update to mPDF 8.1.4, which adds PHP 8.2 support

= 1.0.5 - 2021/03/25 =

* TWEAK: De-activate composer 2.0 run-time platform check
Expand Down
3 changes: 1 addition & 2 deletions woocommerce-printnode-mpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/DavidAnderson684/woocommerce-printnode-mpdf
* GitHub Plugin URI: https://github.com/DavidAnderson684/woocommerce-printnode-mpdf
* Description: Use the mPDF engine for producing PDF files
* Version: 1.0.5
* Version: 1.1.0
* Author: David Anderson
* Author URI: https://www.simbahosting.co.uk/s3/shop/
* License: MIT
Expand Down Expand Up @@ -71,7 +71,6 @@ public function html_to_pdf_result($result, $html, $options) {
'debug' => true,
'useSubstitutions' => file_exists(__DIR__ . '/vendor/mpdf/mpdf/ttfonts/FreeSans.ttf'),
));

error_clear_last();
$mpdf = new \Mpdf\Mpdf($mpdf_options);
$mpdf->WriteHTML($html);
Expand Down

0 comments on commit 45e53a7

Please sign in to comment.