diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-01-27 13:02:21 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-01-27 13:02:21 +0000 |
commit | f5bfbbd6c60d2827a961735d94d435ee24cc8f11 (patch) | |
tree | bbdcd7ffe80031e30843b53888739fb746542e78 /src/main | |
parent | 0f72666691e481b64d8901802e7894cb58b0c2c4 (diff) | |
download | pdf-as-3-f5bfbbd6c60d2827a961735d94d435ee24cc8f11.tar.gz pdf-as-3-f5bfbbd6c60d2827a961735d94d435ee24cc8f11.tar.bz2 pdf-as-3-f5bfbbd6c60d2827a961735d94d435ee24cc8f11.zip |
- build script for command line version extended
- some developer comments removed
- more debug messages
- missing message for error code 322 added
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@732 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/assembly/assemble_distribution_cl.xml | 12 | ||||
-rw-r--r-- | src/main/distribution/cl/sign.bat | 1 | ||||
-rw-r--r-- | src/main/distribution/cl/sign.sh | 3 | ||||
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/commandline/Main.java | 16 | ||||
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/pdf/StructContentHelper.java | 4 | ||||
-rw-r--r-- | src/main/resources/config/help_text.properties | 1 |
6 files changed, 18 insertions, 19 deletions
diff --git a/src/main/assembly/assemble_distribution_cl.xml b/src/main/assembly/assemble_distribution_cl.xml index 22684d9..c570ab7 100644 --- a/src/main/assembly/assemble_distribution_cl.xml +++ b/src/main/assembly/assemble_distribution_cl.xml @@ -23,7 +23,8 @@ <filtered>true</filtered>
<outputDirectory/>
<includes>
- <include>pdf-as.*</include>
+ <include>*.bat</include>
+ <include>*.sh</include>
</includes>
</fileSet>
<fileSet>
@@ -34,7 +35,14 @@ </includes>
</fileSet>
<fileSet>
- <directory>dok</directory>
+ <directory>dok/Anwendungsbeschreibung</directory>
+ <outputDirectory>doc</outputDirectory>
+ <includes>
+ <include>PDF-AS-${project.version}-Anwendungsbeschreibung.pdf</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>dok/Konfiguration</directory>
<outputDirectory>doc</outputDirectory>
<includes>
<include>*.pdf</include>
diff --git a/src/main/distribution/cl/sign.bat b/src/main/distribution/cl/sign.bat new file mode 100644 index 0000000..e25213b --- /dev/null +++ b/src/main/distribution/cl/sign.bat @@ -0,0 +1 @@ +call pdf-as.bat -mode sign -sigmode textual -connector bku %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/src/main/distribution/cl/sign.sh b/src/main/distribution/cl/sign.sh new file mode 100644 index 0000000..410b3fe --- /dev/null +++ b/src/main/distribution/cl/sign.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./pdf-as.sh -mode sign -sigmode textual -connector bku $@ diff --git a/src/main/java/at/gv/egiz/pdfas/commandline/Main.java b/src/main/java/at/gv/egiz/pdfas/commandline/Main.java index b0acb33..17548f4 100644 --- a/src/main/java/at/gv/egiz/pdfas/commandline/Main.java +++ b/src/main/java/at/gv/egiz/pdfas/commandline/Main.java @@ -1157,22 +1157,8 @@ public abstract class Main protected static boolean checkSignatureType(String signature_type) throws SignatureTypesException
{
return SignatureTypes.getInstance().getSignatureTypes().contains(signature_type);
-
- // exthex: uuuaaaahhhhh WHY???, dont do that.
- // Please read: http://www.amazon.de/Java-f%C3%BCr-Dummies-Barry-Burd/dp/382662999X
-// List types_array = sig_types.getSignatureTypes();
-// Iterator it = types_array.iterator();
-// while (it.hasNext())
-// {
-// String type = (String) it.next();
-// if (type.equals(signature_type))
-// {
-// return true;
-// }
-// }
-// return false;
}
-
+
/**
* Translates the commandline argument to a PDF-AS-ID.
*
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/StructContentHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/StructContentHelper.java index b15b3d6..54b6ec8 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/StructContentHelper.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/StructContentHelper.java @@ -66,11 +66,11 @@ public class StructContentHelper { isTagged = markDict.getAsBoolean(PdfName.MARKED).booleanValue();
}
if (!isTagged) {
- BinarySignature.logger
- .debug("input document is not tagged. no structure/wai information is written");
+ BinarySignature.logger.debug("Input document is not tagged. no structure/wai information is written");
return;
}
+ BinarySignature.logger.debug("Input is tagged. Writing structure/WAI data.");
PdfDictionary root = getStructTreeRoot();
stamperImp.markUsed(root);
diff --git a/src/main/resources/config/help_text.properties b/src/main/resources/config/help_text.properties index f31ee0f..7c07665 100644 --- a/src/main/resources/config/help_text.properties +++ b/src/main/resources/config/help_text.properties @@ -38,6 +38,7 @@ error.code.229=Der angegebene Wert für die y-Position in der absoluten Position error.code.230=Die Schriftart konnte nicht geladen werden.
error.code.231=Das Dokument kann nicht verarbeitet werden, da es geschützt ist.
error.code.232=Die Signatur konnte nicht überprüft werden, da das Dokument unvollständige Signaturinformationen enthält.
+error.code.233=Es konnte kein passender Platzhalter gefunden werden (STRICT mode).
error.code.250=Das angegebene Dokument ist leer.
error.code.251=Das angegebene Dokument enthält keinen extrahierbaren Text. Falls sich der Inhalt ausschließlich aus Bildern zusammensetzt, wird die Verwendung einer binären Signatur empfohlen.
|