From a579fca6ae2f26219a364a8cbf13dc5a82acf1d9 Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 19 Nov 2009 14:09:24 +0000 Subject: added non text oject info git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@430 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/gv/egiz/pdfas') diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java index 0cdc3a7..df72a65 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java @@ -247,7 +247,8 @@ public class PdfAsObject implements PdfAs signParameters.getTimeStamperImpl() ); - return new SignResultImpl(signParameters.getOutput(), si.getSignSignatureObject().getX509Certificate(), new ActualSignaturePositionAdapter(si.getActualTablePos())); + return new SignResultImpl(signParameters.getOutput(), si.getSignSignatureObject().getX509Certificate(), + new ActualSignaturePositionAdapter(si.getActualTablePos()), si.getNonTextualObjects()); } /** @@ -277,7 +278,14 @@ public class PdfAsObject implements PdfAs VerifyAfterAnalysisParameters vaap = new VerifyAfterAnalysisParameters(); vaap.setAnalyzeResult(analyzeResult); fillVerifyAfterAnalysisParametersWithVerifyParameters(vaap, verifyParameters); - return verify(vaap); + VerifyResults res = verify(vaap); + + if (verifyParameters.isReturnNonTextObjects()) { + res.setNonTextualObjects(PdfAS.extractNonTextualObjects(new PdfDataSourceAdapter(verifyParameters.getDocument()))); + } + + return res; + } -- cgit v1.2.3