From 2643dec4ecd56620d35d96518b76932dfe0419bb Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 29 Nov 2010 14:18:14 +0000 Subject: added hasbeencorrected flag git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@617 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/gv/egiz/pdfas/api/analyze/AnalyzeParameters.java | 2 ++ src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeResult.java | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'src') diff --git a/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeParameters.java b/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeParameters.java index b0ad28b..91d471a 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeParameters.java +++ b/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeParameters.java @@ -35,6 +35,8 @@ public class AnalyzeParameters protected boolean returnNonTextualObjects = false; + protected boolean hasBeenCorrected = false; + /** * @return the document */ diff --git a/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeResult.java b/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeResult.java index a1aabb4..1e290a3 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeResult.java +++ b/src/main/java/at/gv/egiz/pdfas/api/analyze/AnalyzeResult.java @@ -29,6 +29,15 @@ public interface AnalyzeResult public List getSignatures() throws PdfAsException; public List getNoSignatures(); + + /** + * Tells if the document has been corrected before verification. The correction maybe done + * after a first failing parse to repair a document (if enabled in the configuration + * correct_document_on_verify_if_necessary). The correction can only work for textual + * signatures. Binary signatures are lost anyhow. + * @return + */ + public boolean hasBeenCorrected(); } -- cgit v1.2.3