diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-10 14:23:21 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-10 14:23:21 +0000 |
commit | 8ba10b6fa16c78ec3a8661d7b050320971495405 (patch) | |
tree | a8c37cc68bdab41f0387f0b83a4c76e697552ea0 /src/main/java/demo | |
parent | 3c227f61c5e7bd5b9adceaa0d62e0c9862f7868b (diff) | |
download | pdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.tar.gz pdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.tar.bz2 pdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.zip |
improved nonObjectExtraction. Use per signature basis
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@506 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/demo')
-rw-r--r-- | src/main/java/demo/SignatureVerificationDemo.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/main/java/demo/SignatureVerificationDemo.java b/src/main/java/demo/SignatureVerificationDemo.java index 498849d..6df4973 100644 --- a/src/main/java/demo/SignatureVerificationDemo.java +++ b/src/main/java/demo/SignatureVerificationDemo.java @@ -90,19 +90,18 @@ public class SignatureVerificationDemo { while (it.hasNext()) {
VerifyResult result = (VerifyResult) it.next();
Main.formatVerifyResult(result, out);
- }
- out.flush();
-
- // check if non textual elements have been detected
- if (analyzeResult.hasNonTextualObjects()) {
- System.out.println("\nWARNING: Non textual objects detected.");
- Iterator noit = analyzeResult.getNonTextualObjects().iterator();
- while (noit.hasNext()) {
- NonTextObjectInfo info = (NonTextObjectInfo) noit.next();
- System.out.println(" -> " + info.toString());
+ if (result.hasNonTextualObjects()) {
+ System.out.println("\nWARNING: Non textual objects detected.");
+ Iterator noit = result.getNonTextualObjects().iterator();
+ while (noit.hasNext()) {
+ NonTextObjectInfo info = (NonTextObjectInfo) noit.next();
+ System.out.println(" -> " + info.toString());
+ }
+ System.out.println();
+
}
- System.out.println();
}
+ out.flush();
} catch (PdfAsException e) {
e.printStackTrace();
|