Skip to content

Commit

Permalink
Removed extra whitespace from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemuu authored Feb 19, 2023
1 parent 3a810ef commit 4d0fb3c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ByteArrayOutputStream os = signer.signDocument("35847001001",
SignatureProfile.of("http://alauda.mobi/digitalSignature"));
try (FileOutputStream fos = new FileOutputStream(new File("example.signed.pdf"))) {
os.writeTo(fos);
}
}
```

DOCX Signing
Expand All @@ -54,15 +54,15 @@ DOCX Signing
MssClient client = new MssClient.Builder().withRestUrl("https://demo.methics.fi/restapi/")
.withPassword("TestAP", "9TMzfH7EKXETOB8FT5gz")
.build();
DocxSigner signer = new DocxSigner(client);
DocxSigner signer = new DocxSigner(client);

File doc = new File("example.docx");
InputStream is = new FileInputStream(doc);
ByteArrayOutputStream os = signer.signDocument("35847001001",
"Please sign example.docx",
is,
File doc = new File("example.docx");
InputStream is = new FileInputStream(doc);
ByteArrayOutputStream os = signer.signDocument("35847001001",
"Please sign example.docx",
is,
SignatureProfile.of("http://alauda.mobi/digitalSignature"));
try (FileOutputStream fos = new FileOutputStream(new File("example.signed.docx"))) {
os.writeTo(fos);
try (FileOutputStream fos = new FileOutputStream(new File("example.signed.docx"))) {
os.writeTo(fos);
}
```

0 comments on commit 4d0fb3c

Please sign in to comment.