使用phpdocx在PDF中添加多个签名

使用phpdocx在PDF中添加多个签名,pdf,sign,phpdocx,Pdf,Sign,Phpdocx,我需要在一个PDF中放入两个或多个签名。phpdocx有可能吗 我试过这样做,但最终的文件只有最后的签名 $sign = new SignPDF(); $sign->setPDF(storage_path('app/manual_SEPA.pdf')); $sign->setPrivateKey(storage_path('app/signatures/cert1.pem'), 'test'); $sign->setX509Certificate(storage_path('a

我需要在一个PDF中放入两个或多个签名。phpdocx有可能吗

我试过这样做,但最终的文件只有最后的签名

$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'));
我尝试将所有内容都放在一个SignPDF实例中,但不起作用

有人能帮我吗