Skip to content

Commit

Permalink
fix possible exception in DompdfCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Aug 1, 2024
1 parent d9a067a commit fc9c377
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.3] - 2024-08-01
- Fixed: possible exception in DompdfCreator

## [0.4.2] - 2024-08-01
- Changed: widen dependency requirements

Expand Down
2 changes: 1 addition & 1 deletion PdfCreator/Concrete/DompdfCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function supports(): array
{
$support = [];

if (class_exists('setasign\Fpdi\Tcpdf\Fpdi')) {
if (class_exists(\TCPDF::class) && class_exists(Fpdi::class)) {
$support[] = static::SUPPORT_MASTERTEMPLATE;
}

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ We recommend installing this library with composer:
composer require heimrichhannot/pdf-creator

You also need to install the pdf library, you want to use this bundle with:
- Dompdf:
- `"dompdf/dompdf": "^1.0"`
- Dompdf (version 1 to 3 are supported):
- `"dompdf/dompdf": "^3.0"`
- if you want to use master templates in Dompdf, you also need FPDI and TCPDF:
- `"tecnickcom/tcpdf": "^6.3"`
- `"setasign/fpdi": "^2.3"`
- mPDF
- `"mpdf/mpdf": "^8.0"` (version ^7.0 also supported)
- mPDF (version 7 and 8 are supported):
- `"mpdf/mpdf": "^8.0"`
- TCPDF
- `"tecnickcom/tcpdf": "^6.3"`
- if you want to use master templates in TCPDF, you also need FPDI:
Expand Down

0 comments on commit fc9c377

Please sign in to comment.