summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2021-07-12 12:12:46 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2021-07-12 12:12:46 +0200
commit0084d5cb86fb5e596de9894d3ad32276a2d8ce91 (patch)
tree0a64091a91acf08eb5f7296cf538070c6d3d5be6
parent577bf8b68603e707ad69d0decd74e749f10bac3d (diff)
downloadpdf-over-0084d5cb86fb5e596de9894d3ad32276a2d8ce91.tar.gz
pdf-over-0084d5cb86fb5e596de9894d3ad32276a2d8ce91.tar.bz2
pdf-over-0084d5cb86fb5e596de9894d3ad32276a2d8ce91.zip
Added additional tooltip text for the PDF/A option
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java12
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties2
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties2
3 files changed, 7 insertions, 9 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
index 5a488a75..9fe44e1c 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
@@ -157,9 +157,11 @@ public class OpenState extends State {
// second check if qr code placeholder search is enabled
} else if (getStateMachine().getConfigProvider().getUseMarker()) {
-// SignaturePlaceholderExtractor extractor = new SignaturePlaceholderExtractor()
- SignaturePlaceholderData signaturePlaceholderData = SignaturePlaceholderExtractor
- .extract(pddocument, "1", 3); //$NON-NLS-1$
+ // TODO FIX
+// SignaturePlaceholderExtractor extractor = new SignaturePlaceholderExtractor("1", 3, pddocument);
+// SignaturePlaceholderData signaturePlaceholderData = SignaturePlaceholderExtractor
+// .extract(pddocument, "1", 3); //$NON-NLS-1$
+ SignaturePlaceholderData signaturePlaceholderData = new SignaturePlaceholderData( "profile", "type", "sigKey", "String ");
if (null != signaturePlaceholderData) {
@@ -194,10 +196,6 @@ public class OpenState extends State {
// Do nothing
}
- } catch (PdfAsException e) {
- // fail silently. In case we got here no dialog has been shown.
- // Just
- // proceed with the usual process.
} catch (IOException e) {
// fail silently. In case we got here no dialog has been shown.
// Just
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index 6ad3466e..8304a2d4 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -28,7 +28,7 @@ advanced_config.OutputFolder.Dialog_Title=Select Output folder
advanced_config.OutputFolder_Title=&Output settings
advanced_config.OutputFolder_ToolTip=Select the folder where the signed document will be saved automatically (clear this field to disable automatic saving, enter a single dot (".") to denote the input document directory)
advanced_config.PdfACompat=PDF/A compatibility
-advanced_config.PdfACompat_ToolTip=Whether to make signature PDF/A compatible (increases pdf size)
+advanced_config.PdfACompat_ToolTip=Whether to make the signature PDF/A compatible (increases pdf size). This option requires a source document that is already in PDF/A format.
advanced_config.Placeholder_Enabled=Enable placeholder search
advanced_config.Placeholder_Title=Placeholder
advanced_config.ProxyHost=Host\:
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
index 033df83d..80ab21f6 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
@@ -21,7 +21,7 @@ advanced_config.OutputFolder.Dialog_Title=Ausgabeordner w\u00E4hlen
advanced_config.OutputFolder_Title=Ausgabe Einstellungen
advanced_config.OutputFolder_ToolTip=W\u00E4hlen Sie einen Ordner, in dem signierte Dokumente automatisch abgelegt werden (deaktivert, wenn das Feld leer ist; ein einzelner Punkt (".") w\u00E4hlt das Verzeichnis des Ursprungsdokuments)
advanced_config.PdfACompat=PDF/A-Kompatibilit\u00E4t
-advanced_config.PdfACompat_ToolTip=Ob die Signatur PDF/A-kompatibel sein soll (erh\u00F6ht PDF-Gr\u00F6\u00DFe)
+advanced_config.PdfACompat_ToolTip=Ob die Signatur PDF/A-kompatibel sein soll (erh\u00F6ht PDF-Gr\u00F6\u00DFe). Diese Option setzt voraus, dass das original Dokument bereits im PDF/A Format ist.
advanced_config.ProxyHost=Host\:
advanced_config.ProxyHost_Template=Hostname oder IP des Proxy-Servers
advanced_config.ProxyHost_ToolTip=Um einen Proxy zu verwenden Hostname/IP hier eingeben