Forum


Replies: 5   Views: 2252
Signpdf throws errorexception in tcpdf_lib.php:20818
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by iulian-tsf  · 01-06-2020 - 10:05

Hi,

I'm expericiencing some issues when I try to digitally sign a pdf file. Basically, I'm getting an ErrorException chr() expects parameter 1 to be int, string given, in phpdocx/Classes/Phpdocx/Libs/TCPDF_lib.php, line 20818; I'm not sure if there's something I'm doing wrong at this point or if this is a genuine bug.
Also, forcing a workaround for this, I'm facing some issues with the openssl_pkcs7_sign(): error getting private key thrown from the same file (TCPD_lib.php) from line 32454; after some quick investigations, it seems it expects the cert files to be in the application's public folder.

Just to confirm, signing .docx files works with no issues.

Hopefully there is a workaround for the above issues with pdf sign.

Appreciate your help.