aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/test/java/at
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-04-16 14:48:30 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-04-16 14:48:30 +0200
commitb05ea2be957b199968e0a854df149c2cb8fc9ee1 (patch)
treee93bd85eb8428af44281bc2e307af4b6fc746617 /pdf-as-cli/src/test/java/at
parentf3c42b0079b7fe9a671d84bdb363b9f0fddcb804 (diff)
downloadpdf-as-4-b05ea2be957b199968e0a854df149c2cb8fc9ee1.tar.gz
pdf-as-4-b05ea2be957b199968e0a854df149c2cb8fc9ee1.tar.bz2
pdf-as-4-b05ea2be957b199968e0a854df149c2cb8fc9ee1.zip
clean up
Diffstat (limited to 'pdf-as-cli/src/test/java/at')
-rw-r--r--pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java36
1 files changed, 2 insertions, 34 deletions
diff --git a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java
index db11f451..9c53c80e 100644
--- a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java
+++ b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java
@@ -108,7 +108,6 @@ public class SignaturBlockParameterTest {
map = new HashMap<>();
map.put("subject", "TEST123");
-// map.put("foo", "bar");
signParameter.setDynamicSignatureBlockArguments(map);
signParameter.setPlainSigner(signer);
signParameter.setSignatureProfileId(profile);
@@ -124,7 +123,6 @@ public class SignaturBlockParameterTest {
signParameter = PdfAsFactory.createSignParameter(
config, source, fos);
map = new HashMap<>();
-// map.put("subject", "TEST123");
map.put("foo", "bar");
signParameter.setDynamicSignatureBlockArguments(map);
signParameter.setPlainSigner(signer);
@@ -138,10 +136,7 @@ public class SignaturBlockParameterTest {
fos = new FileOutputStream(outFile);
signParameter = PdfAsFactory.createSignParameter(
config, source, fos);
-// map = new HashMap<>();
-// map.put("subject", "TEST123");
-// map.put("foo", "bar");
-// signParameter.setDynamicSignatureBlockArguments(map);
+
signParameter.setPlainSigner(signer);
signParameter.setSignatureProfileId(profile);
result = pdfas.sign(signParameter);
@@ -190,32 +185,5 @@ public class SignaturBlockParameterTest {
}
return null;
}
-// public void getStringsFromPDF(String fileName) {
-//// PDFParser parser = null;
-// PDDocument pdDoc = null;
-//// COSDocument cosDoc = null;
-// PDFTextStripper pdfStripper;
-//
-// String parsedText;
-// try {
-//
-// findExistingSignature(pdDoc,"PDF-AS Signatur1");
-// pdfStripper = new PDFTextStripper();
-//
-//
-// parsedText = pdfStripper.getText(pdDoc);
-// System.out.println(parsedText.replaceAll("[^A-Za-z0-9. ]+", ""));
-// } catch (Exception e) {
-// e.printStackTrace();
-// try {
-//// if (cosDoc != null)
-//// cosDoc.close();
-// if (pdDoc != null)
-// pdDoc.close();
-// } catch (Exception e1) {
-// e1.printStackTrace();
-// }
-//
-// }
-// }
+
}