Skip to content

Commit

Permalink
Fix bug on _getannotsrefs when there are empty signature appearances …
Browse files Browse the repository at this point in the history
…but not other annot on a page
  • Loading branch information
aprecioso committed Sep 23, 2024
1 parent 951eabf commit 5e43d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [';
Expand Down

0 comments on commit 5e43d3c

Please sign in to comment.