dealfonso / sapp

Simple and Agnostic PDF Document Parser in PHP - sign PDF docs using PHP
GNU Lesser General Public License v3.0
110 stars 29 forks source link

PHP Fatal error: Uncaught Error: Call to a member function val() on int in ddn/sapp/src/PDFDoc.php:459 #26

Closed parallels999 closed 1 year ago

parallels999 commented 1 year ago

I'm trying pdfsigni.php And i'm getting

PHP Fatal error:  Uncaught Error: Call to a member function val() on int in ddn\sapp\src\PDFDoc.php:459
Stack trace:
#0 ddn\sapp\src\PDFDoc.php(690): ddn\sapp\PDFDoc->_generate_signature_in_document()
#1 ddn\sapp\src\PDFDoc.php(823): ddn\sapp\PDFDoc->to_pdf_file_b(false)
#2 ddn\sapp\pdfsigni.php(78): ddn\sapp\PDFDoc->to_pdf_file_s()
#3 {main}
  thrown in ddn\sapp\src\PDFDoc.php on line 459

https://github.com/dealfonso/sapp/blob/01acefd42ce5dfb4d572b76db2b1871270991abe/src/PDFDoc.php#L458-L460 ddn\sapp\src\PDFDoc.php on line 459 is $page_rotation->val()

I'm doing something wrong? i did not change anything

Btw, thanks for the amazing work

dealfonso commented 1 year ago

could you please provide an example?

parallels999 commented 1 year ago

could you please provide an example?

@dealfonso I'm trying pdfsigni.php, that is the exmaple