Skip to content

Commit f37afe3

Browse files
committed
Updated examples in view to the size of the returned signature values.
1 parent 3cef5e1 commit f37afe3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/demo-batch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
// initiate a batch instance
6767
$batch = new BatchModule($settings['customerId'], $httpClient, new RequestFactory(), new StreamFactory());
68-
$batch->setSignatureContentLength(30000);
68+
$batch->setSignatureContentLength(33000);
6969
// the signatures should include a timestamp, too
7070
$batch->setAddTimestamp(true);
7171

examples/demo-ltv-async-on-demand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
$swisscomModule = new AsyncModule($settings['customerId'], $httpClient, new RequestFactory(), new StreamFactory());
5555
if (!array_key_exists(__FILE__, $_SESSION)) {
5656
$signer->setAllowSignatureContentLengthChange(false);
57-
$signer->setSignatureContentLength(30000);
57+
$signer->setSignatureContentLength(34000);
5858

5959
// set some signature properties
6060
$signer->setLocation($_SERVER['SERVER_NAME']);
@@ -109,7 +109,7 @@
109109
echo <<<HTML
110110
<script type="text/javascript">
111111
function openLink () {
112-
window.open(${url}, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');
112+
window.open({$url}, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');
113113
window.setTimeout(function () {window.location = window.location.pathname;}, 5000);
114114
}
115115
</script>

examples/demo-ltv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// now let's create a signer instance
4848
$signer = new SetaPDF_Signer($document);
4949
$signer->setAllowSignatureContentLengthChange(false);
50-
$signer->setSignatureContentLength(30000);
50+
$signer->setSignatureContentLength(33000);
5151

5252
// set some signature properties
5353
$signer->setLocation($_SERVER['SERVER_NAME']);

examples/demo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// now let's create a signer instance
4848
$signer = new SetaPDF_Signer($document);
4949
$signer->setAllowSignatureContentLengthChange(false);
50-
$signer->setSignatureContentLength(36000);
50+
$signer->setSignatureContentLength(42000);
5151

5252
// set some signature properties
5353
$signer->setLocation($_SERVER['SERVER_NAME']);

0 commit comments

Comments
 (0)