You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaration of setasign\Fpdi\FpdfTplTrait::AddPage($orientation = '', $size = '', $rotation = 0) should be compatible with TCPDF::AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false)
I want to use the commercial FPDI PDF parser from setasign. In order to do this, I have to use Fpdi2Driver and pass in an instance of Fpdi from setasign/fpdi:
$merger = new Merger(new Fpdi2Driver(new Fpdi()));
Fpdi extends FpdfTpl (both from setasign/fpdi) FpdfTpl extends \FPDF
This library provides an alias of \FPDF which extends from TCPDF (tecnickcom/tcpdf).
Fpdi and TCPDF have incompatible method signatures on these methods:
Declaration of setasign\Fpdi\FpdfTplTrait::setPageFormat($size, $orientation) should be compatible with TCPDF::setPageFormat($format, $orientation = 'P')
Declaration of setasign\Fpdi\FpdfTplTrait::AddPage($orientation = '', $size = '', $rotation = 0) should be compatible with TCPDF::AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false)
Declaration of setasign\Fpdi\FpdfTplTrait::Link($x, $y, $w, $h, $link) should be compatible with TCPDF::Link($x, $y, $w, $h, $link, $spaces = 0)
Declaration of setasign\Fpdi\FpdfTplTrait::SetDrawColor($r, $g = NULL, $b = NULL) should be compatible with TCPDF::SetDrawColor($col1 = 0, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '')
Probably others, I lost interest in manually fixing them just to get a different error message.
This generates a warning in PHP 7.4 and fatal errors in PHP 8.
The text was updated successfully, but these errors were encountered:
I want to use the commercial FPDI PDF parser from setasign. In order to do this, I have to use
Fpdi2Driver
and pass in an instance ofFpdi
fromsetasign/fpdi
:Fpdi
extendsFpdfTpl
(both fromsetasign/fpdi
)FpdfTpl
extends\FPDF
This library provides an alias of
\FPDF
which extends fromTCPDF
(tecnickcom/tcpdf
).Fpdi
andTCPDF
have incompatible method signatures on these methods:Probably others, I lost interest in manually fixing them just to get a different error message.
This generates a warning in PHP 7.4 and fatal errors in PHP 8.
The text was updated successfully, but these errors were encountered: