diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-02-01 09:55:31 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-02-01 09:55:31 +0000 |
commit | 0516022f972d9c0563a7644a172994a79ac4fe9a (patch) | |
tree | f438ff397ceb13a46d3c41a9b7e37d5b0b872a9e | |
parent | b0b9a063b8ef0641839206fd574dc62f96da162c (diff) | |
download | pdf-as-3-0516022f972d9c0563a7644a172994a79ac4fe9a.tar.gz pdf-as-3-0516022f972d9c0563a7644a172994a79ac4fe9a.tar.bz2 pdf-as-3-0516022f972d9c0563a7644a172994a79ac4fe9a.zip |
- Bug fixed (placeholder strict mode was not applied when document does not contain any (valid) placeholder image)
- Documentation updated.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@740 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r-- | dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.doc | bin | 611840 -> 622080 bytes | |||
-rw-r--r-- | dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.pdf | bin | 1388384 -> 1435087 bytes | |||
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java | 7 | ||||
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.doc b/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.doc Binary files differindex da3212d..9ba59de 100644 --- a/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.doc +++ b/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.doc diff --git a/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.pdf b/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.pdf Binary files differindex a438e74..2358c4e 100644 --- a/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.pdf +++ b/dok/Anwendungsbeschreibung/PDF-AS-3.2-SNAPSHOT-Anwendungsbeschreibung.pdf diff --git a/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java b/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java index b33c7f3..76a4dec 100644 --- a/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java +++ b/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java @@ -117,8 +117,13 @@ public class SignaturePlaceholderExtractor extends PDFStreamEngine { SignaturePlaceholderContext.setSignaturePlaceholderData(ret);
return ret;
}
+ // no placeholders found, apply strict mode if set
+ if (matchMode == Constants.PLACEHOLDER_MATCH_MODE_STRICT) {
+ throw new PlaceholderExtractionException(ErrorCode.SIGNATURE_PLACEHOLDER_EXTRACTION_FAILED, "no suitable placeholder found and STRICT matching mode requested.");
+ }
+
return null;
- }finally{
+ } finally {
if (doc != null)
try {
doc.close();
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java index 7858344..01077f9 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java @@ -107,7 +107,7 @@ public abstract class PdfAS * The current version of the pdf-as library. This version string is logged on every invocation
* of the api or the web application.
*/
- public static final String PDFAS_VERSION = "3.2-SNAPSHOT (20110128)";
+ public static final String PDFAS_VERSION = "3.2-SNAPSHOT (20110201)";
/**
* The key of the strict mode setting.
|