From f5bfbbd6c60d2827a961735d94d435ee24cc8f11 Mon Sep 17 00:00:00 2001 From: tknall Date: Thu, 27 Jan 2011 13:02:21 +0000 Subject: - 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 --- src/main/assembly/assemble_distribution_cl.xml | 12 ++++++++++-- src/main/distribution/cl/sign.bat | 1 + src/main/distribution/cl/sign.sh | 3 +++ src/main/java/at/gv/egiz/pdfas/commandline/Main.java | 16 +--------------- .../wag/egov/egiz/pdf/StructContentHelper.java | 4 ++-- src/main/resources/config/help_text.properties | 1 + 6 files changed, 18 insertions(+), 19 deletions(-) create mode 100644 src/main/distribution/cl/sign.bat create mode 100644 src/main/distribution/cl/sign.sh 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 @@ true - pdf-as.* + *.bat + *.sh @@ -34,7 +35,14 @@ - dok + dok/Anwendungsbeschreibung + doc + + PDF-AS-${project.version}-Anwendungsbeschreibung.pdf + + + + dok/Konfiguration doc *.pdf 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 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. -- cgit v1.2.3