// let's add PADES revoke information to the resulting signatures $batch->setAddRevokeInformation('PADES'); try { // timestamp the documents and add the revoke information to the DSS of the documents $batch->timestamp($documents, true); } catch (SetaPDF_Signer_SwisscomAIS_Exception $e) { echo 'Error in SwisscomAIS: ' . $e->getMessage() . ' with code ' . $e->getCode() . '<br />'; /* Get the AIS Error details */ echo "<pre>"; var_dump($e->getResultMajor()); var_dump($e->getResultMinor()); echo "</pre>"; die; } // get access to the last result object $result = $batch->getLastResult(); echo count($result->SignResponse->SignatureObject->Other->SignatureObjects->ExtendedSignatureObject); ?> Timestamp-Signatures created.<br /> <ul> <?php foreach ($files as $file) { ?> <li><a href="<?php echo $file['out']; ?> "><?php echo basename($file['out']); ?> </a></li>