Hi, i need to put two or more signatures in one PDF. Is it possible with phpdocx?
I tried this way, but the final file came only with the last signature...
$sign = new SignPDF();
$sign->setPDF(storage_path('app/manual_SEPA.pdf'));
$sign->setPrivateKey(storage_path('app/signatures/cert1.pem'), 'test');
$sign->setX509Certificate(storage_path('app/signatures/cert1.pem'));
$sign->sign(storage_path('app/manual_SEPA_signed.pdf'));
$sign2 = new SignPDF();
$sign2->setPDF(storage_path('app/manual_SEPA_signed.pdf'));
$sign2->setPrivateKey(storage_path('app/signatures/cert2.pem'), 'test');
$sign2->setX509Certificate(storage_path('app/signatures/cert2.pem'));
$sign2->sign(storage_path('app/manual_SEPA_signed_signed.pdf'));
I tried put all in one SignPDF instance, but doesn't work too...
Can someone help me?