aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 13:31:47 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 13:31:47 +0100
commita465414ecb2bc2792bb56a17d5ae4e883d8c3a88 (patch)
treea445844289f1f5e815e1c517a3302c9f0912291a /pdf-as-common
parent863f99753af19b3f5ce354d4d1ff0a5e8a4f32dd (diff)
downloadpdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.tar.gz
pdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.tar.bz2
pdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.zip
Moved harded messages to common.properties
Diffstat (limited to 'pdf-as-common')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java2
-rw-r--r--pdf-as-common/src/main/resources/resources/messages/common.properties41
2 files changed, 28 insertions, 15 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java
index 5013d431..34108978 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java
@@ -15,7 +15,7 @@ public class MessageResolver {
private static ResourceBundle bundle;
static {
- ResourceBundle bundle = ResourceBundle.getBundle(messageResource);
+ bundle = ResourceBundle.getBundle(messageResource);
if(bundle == null) {
logger.error("Failed to load resource bundle!!");
System.err.println("Failed to load resource bundle!!");
diff --git a/pdf-as-common/src/main/resources/resources/messages/common.properties b/pdf-as-common/src/main/resources/resources/messages/common.properties
index aac8d173..d4c58888 100644
--- a/pdf-as-common/src/main/resources/resources/messages/common.properties
+++ b/pdf-as-common/src/main/resources/resources/messages/common.properties
@@ -1,24 +1,37 @@
# PDF Permission Errors
-error.pdf.perm.01=You do not have permission to extract images.
+error.pdf.perm.01=You do not have permission to extract images
#PDF IO Errors
-error.pdf.io.01=Failed to read original PDF Document into PDDocument.
-error.pdf.io.02=Failed to write PDF Document.
+error.pdf.io.01=Failed to read original PDF Document into PDDocument
+error.pdf.io.02=Failed to write PDF Document
+error.pdf.io.03=Security Layer communication error
+error.pdf.io.04=Failed to write PDF Document
+error.pdf.io.05=Security Layer element not available
#PDF Stamper Errors
-error.pdf.stamp.01=Failed to load true type font.
+error.pdf.stamp.01=Failed to load true type font
error.pdf.stamp.02=PDF/A modus requires an embeddable true type font
-error.pdf.stamp.03=Table is not defined.
-error.pdf.stamp.04=Image file doesn't exist.
-error.pdf.stamp.05=Unable to create PDF table.
-error.pdf.stamp.06=Failed to create visual signature object.
-error.pdf.stamp.07=The provided page is out of range.
-error.pdf.stamp.08=Failed to write the visual signature object.
+error.pdf.stamp.03=Table is not defined
+error.pdf.stamp.04=Image file doesn't exist
+error.pdf.stamp.05=Unable to create PDF table
+error.pdf.stamp.06=Failed to create visual signature object
+error.pdf.stamp.07=The provided page is out of range
+error.pdf.stamp.08=Failed to write the visual signature object
+error.pdf.stamp.09=no suitable placeholder found and STRICT matching mode requested
+error.pdf.stamp.10=no stamper available
+error.pdf.stamp.11=Failed to calculate page length
#Signature errors
-error.pdf.sig.01=Failed to create signature!
-error.pdf.sig.02=Failed to open keystore!
+error.pdf.sig.01=Failed to create signature
+error.pdf.sig.02=Failed to open keystore
+error.pdf.sig.03=Failed to start signature process
+error.pdf.sig.04=Invalid PDF-AS status handed over
+error.pdf.sig.05=Failed to continue signature process
+error.pdf.sig.06=Failed to finish signature process
+error.pdf.sig.07=Failed to determine Signature Profile
+error.pdf.sig.08=Signature created by the BKU is not valid
+
#Signature verification errors
-error.pdf.verify.01="No signed data available"
-error.pdf.verify.02="Verification failed!" \ No newline at end of file
+error.pdf.verify.01=No signed data available
+error.pdf.verify.02=Verification failed \ No newline at end of file