aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-02-25 10:49:49 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-02-25 10:49:49 +0100
commit2b313d6009275f39a3d2783269ef0a49ef38c0c4 (patch)
tree2120107b3fde9a22e8372faa39c7d3692b0c0f79 /pdf-as-lib/src/main/java
parent023b0901731c61d9beab042df564b7f89697ecff (diff)
downloadpdf-as-3-2b313d6009275f39a3d2783269ef0a49ef38c0c4.tar.gz
pdf-as-3-2b313d6009275f39a3d2783269ef0a49ef38c0c4.tar.bz2
pdf-as-3-2b313d6009275f39a3d2783269ef0a49ef38c0c4.zip
Fixing Bug, hidding Incremental update with referencing SigDict in update trailer
Diffstat (limited to 'pdf-as-lib/src/main/java')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterHelper.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterHelper.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterHelper.java
index 69803e7..ea4cbd4 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterHelper.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterHelper.java
@@ -33,6 +33,8 @@ import at.gv.egiz.pdfas.impl.vfilter.Partition;
import at.gv.egiz.pdfas.impl.vfilter.partition.BinaryPartition;
import at.gv.egiz.pdfas.impl.vfilter.partition.TextPartition;
import at.gv.egiz.pdfas.framework.input.PdfDataSource;
+import at.knowcenter.wag.egov.egiz.exceptions.InvalidIDException;
+import at.knowcenter.wag.egov.egiz.exceptions.PDFDocumentException;
import at.knowcenter.wag.exactparser.parsing.results.FooterParseResult;
/**
@@ -73,7 +75,15 @@ public final class VerificationFilterHelper
FooterParseResult fpr = (FooterParseResult) it.next();
byte[] data = DataSourceHelper.convertDataSourceToByteArray(pdf);
- if (VerificationFilterBinaryHelper.containsEGIZDict(data, fpr))
+ boolean isbinaryPartition = false;
+ try {
+ isbinaryPartition = VerificationFilterBinaryHelper.extractKZFromEGIZBlock(data, fpr) != null;
+ } catch(InvalidIDException e) {
+ isbinaryPartition = false;
+ } catch (PDFDocumentException e) {
+ isbinaryPartition = false;
+ }
+ if (isbinaryPartition)
{
BinaryPartition bp = null;
if (partitions.isEmpty() || ((Partition) partitions.get(partitions.size() - 1)).isTextPartition())