From 8ba10b6fa16c78ec3a8661d7b050320971495405 Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 10 Dec 2009 14:23:21 +0000 Subject: improved nonObjectExtraction. Use per signature basis git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@506 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/demo/SignatureVerificationDemo.java | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/main/java/demo') 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(); -- cgit v1.2.3