diff options
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();
|