Forum


Replies: 4   Views: 2645
Docx sign not work
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 edol.fuchs  · 17-08-2017 - 17:34

I am using the following code:

require_once 'classes/SignDocx.inc';

$sign = new SignDocx();

$sign->setDocx('Test.docx');
$sign->setPrivateKey('Test.pem', 'mypass');
$sign->setX509Certificate('Test.pem');

$sign->setSignatureComments('This document has been signed by me');

$sign->sign();

I can not sign the docx document. The following message appears:

sort() expects parameter 1 to be array, null given in [.../vendor/phpdocx/phpdocx/Classes/Phpdocx/Sign/SignDocx.inc 462]

Does anyone know what this error can be?