update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
8
vendor/setasign/fpdi/src/PdfReader/Page.php
vendored
8
vendor/setasign/fpdi/src/PdfReader/Page.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
|
||||
*/
|
||||
|
||||
@@ -118,7 +118,7 @@ public function getAttribute($name, $inherited = true)
|
||||
if ($inherited && \in_array($name, $inheritedKeys, true)) {
|
||||
if ($this->inheritedAttributes === null) {
|
||||
$this->inheritedAttributes = [];
|
||||
$inheritedKeys = \array_filter($inheritedKeys, function ($key) use ($dict) {
|
||||
$inheritedKeys = \array_filter($inheritedKeys, static function ($key) use ($dict) {
|
||||
return !isset($dict->value[$key]);
|
||||
});
|
||||
|
||||
@@ -334,7 +334,7 @@ public function getExternalLinks($box = PageBoundaries::CROP_BOX)
|
||||
}
|
||||
|
||||
$rect = PdfType::resolve(PdfDictionary::get($annotation, 'Rect'), $this->parser);
|
||||
if (!$rect instanceof PdfArray || count($rect->value) !== 4) {
|
||||
if (!$rect instanceof PdfArray || \count($rect->value) !== 4) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@ public function getExternalLinks($box = PageBoundaries::CROP_BOX)
|
||||
$quadPoints = PdfType::resolve(PdfDictionary::get($annotation, 'QuadPoints'), $this->parser);
|
||||
$normalizedQuadPoints = [];
|
||||
if ($quadPoints instanceof PdfArray) {
|
||||
$quadPointsCount = count($quadPoints->value);
|
||||
$quadPointsCount = \count($quadPoints->value);
|
||||
if ($quadPointsCount % 8 === 0) {
|
||||
for ($i = 0; ($i + 1) < $quadPointsCount; $i += 2) {
|
||||
$x = PdfNumeric::ensure(PdfType::resolve($quadPoints->value[$i], $this->parser));
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -124,6 +124,8 @@ public function getPage($pageNumber)
|
||||
);
|
||||
}
|
||||
|
||||
$pageNumber = (int)$pageNumber;
|
||||
|
||||
if ($pageNumber < 1 || $pageNumber > $this->getPageCount()) {
|
||||
throw new \InvalidArgumentException(
|
||||
\sprintf(
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user