aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-19 14:09:24 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-19 14:09:24 +0000
commita579fca6ae2f26219a364a8cbf13dc5a82acf1d9 (patch)
treeaccb9fd048bd47494d00ed95b10e3c1b249466cd /src
parent41eb87c5d889dfaf866ed8437f8050f66067f2d6 (diff)
downloadpdf-as-3-a579fca6ae2f26219a364a8cbf13dc5a82acf1d9.tar.gz
pdf-as-3-a579fca6ae2f26219a364a8cbf13dc5a82acf1d9.tar.bz2
pdf-as-3-a579fca6ae2f26219a364a8cbf13dc5a82acf1d9.zip
added non text oject info
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@430 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java12
1 files changed, 10 insertions, 2 deletions
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;
+
}