update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
10
vendor/setasign/fpdi/src/Tcpdf/Fpdi.php
vendored
10
vendor/setasign/fpdi/src/Tcpdf/Fpdi.php
vendored
@@ -4,7 +4,7 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package setasign\Fpdi
|
||||
* @copyright Copyright (c) 2024 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @copyright Copyright (c) 2026 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
*/
|
||||
|
||||
@@ -46,7 +46,7 @@ class Fpdi extends \TCPDF
|
||||
*
|
||||
* @string
|
||||
*/
|
||||
const VERSION = '2.6.4';
|
||||
const VERSION = '2.6.6';
|
||||
|
||||
/**
|
||||
* A counter for template ids.
|
||||
@@ -293,10 +293,10 @@ protected function adjustLastLink($externalLink, $xPt, $scaleX, $yPt, $newHeight
|
||||
|
||||
if ($this->inxobj) {
|
||||
// store parameters for later use on template
|
||||
$lastAnnotationKey = count($this->xobjects[$this->xobjid]['annotations']) - 1;
|
||||
$lastAnnotationKey = \count($this->xobjects[$this->xobjid]['annotations']) - 1;
|
||||
$lastAnnotationOpt = &$this->xobjects[$this->xobjid]['annotations'][$lastAnnotationKey]['opt'];
|
||||
} else {
|
||||
$lastAnnotationKey = count($this->PageAnnots[$this->page]) - 1;
|
||||
$lastAnnotationKey = \count($this->PageAnnots[$this->page]) - 1;
|
||||
$lastAnnotationOpt = &$this->PageAnnots[$this->page][$lastAnnotationKey]['opt'];
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ protected function adjustLastLink($externalLink, $xPt, $scaleX, $yPt, $newHeight
|
||||
case 'C':
|
||||
$c = [];
|
||||
$colors = PdfArray::ensure(PdfType::resolve($value, $parser))->value;
|
||||
$m = count($colors) === 4 ? 100 : 255;
|
||||
$m = \count($colors) === 4 ? 100 : 255;
|
||||
foreach ($colors as $item) {
|
||||
$c[] = PdfNumeric::ensure($item)->value * $m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user