From 4d0fb3ca48583718797e53cd01d701c8af09d1bb Mon Sep 17 00:00:00 2001 From: Eemeli Miettinen Date: Sun, 19 Feb 2023 06:38:00 +0200 Subject: [PATCH] Removed extra whitespace from examples --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cc8564c..e11af24 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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); } ```