From 5e43d3ccf71de925c0a345b60f77b6e87ccc56d0 Mon Sep 17 00:00:00 2001 From: Alejandro Precioso Date: Mon, 23 Sep 2024 10:57:13 -0300 Subject: [PATCH] Fix bug on _getannotsrefs when there are empty signature appearances but not other annot on a page --- tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf.php b/tcpdf.php index 60f93c41..11a88521 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -8164,7 +8164,7 @@ protected function _putpages() { * @since 5.0.010 (2010-05-17) */ protected function _getannotsrefs($n) { - if (!(isset($this->PageAnnots[$n]) OR ($this->sign AND isset($this->signature_data['cert_type'])))) { + if (!(isset($this->PageAnnots[$n]) OR count($this->empty_signature_appearance)>0 OR ($this->sign AND isset($this->signature_data['cert_type'])))) { return ''; } $out = ' /Annots [';