Skip to content

Commit

Permalink
Merge pull request #27 from erikn69/patch-1
Browse files Browse the repository at this point in the history
Fix when $page_rotation is not an object
  • Loading branch information
dealfonso authored Oct 24, 2022
2 parents 93d7a8c + 70a62a8 commit bd76a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PDFDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ protected function _generate_signature_in_document() {
$page_obj["Annots"] = new PDFValueList();

$annots = &$page_obj["Annots"];
$page_rotation = $page_obj["Rotate"]??0;
$page_rotation = $page_obj["Rotate"]??new PDFValueSimple(0);

if ((($referenced = $annots->get_object_referenced()) !== false) && (!is_array($referenced))) {
// It is an indirect object, so we need to update that object
Expand Down

0 comments on commit bd76a64

Please sign in to comment.