From 5811f8300872b6a68033c20824bfaabc48ff1a38 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 10 Dec 2015 14:55:18 +0100 Subject: PDF/A compatibility now disabled by default --- .../asit/pdfover/gui/composites/AdvancedConfigurationComposite.java | 6 ++++-- .../at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java | 6 +++--- .../pdfover/gui/workflow/config/ConfigurationContainerImpl.java | 2 +- .../src/main/resources/at/asit/pdfover/gui/messages.properties | 2 +- .../src/main/resources/at/asit/pdfover/gui/messages_de.properties | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java index 49b760be..b9021094 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java @@ -1155,10 +1155,12 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { .getString("advanced_config.Signature_Title")); //$NON-NLS-1$ this.btnAutomatischePositionierung.setText(Messages .getString("advanced_config.AutoPosition")); //$NON-NLS-1$ - this.btnPdfACompat.setText(Messages - .getString("advanced_config.PdfACompat")); //$NON-NLS-1$ this.btnAutomatischePositionierung.setToolTipText(Messages .getString("advanced_config.AutoPosition_ToolTip")); //$NON-NLS-1$ + this.btnPdfACompat.setText(Messages + .getString("advanced_config.PdfACompat")); //$NON-NLS-1$ + this.btnPdfACompat.setToolTipText(Messages + .getString("advanced_config.PdfACompat_ToolTip")); //$NON-NLS-1$ this.lblTransparenz.setText(Messages .getString("advanced_config.SigPHTransparency")); //$NON-NLS-1$ this.lblTransparenzLinks.setText(Messages diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java index ad9c4580..99fd9747 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java @@ -129,7 +129,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, String compat = config.getProperty(Constants.CFG_SIGNATURE_PDFA_COMPAT); if (compat != null) - setSignaturePdfACompat(!compat.equalsIgnoreCase(Constants.FALSE)); + setSignaturePdfACompat(compat.equalsIgnoreCase(Constants.TRUE)); String bkuUrl = config .getProperty(Constants.CFG_MOBILE_BKU_URL); @@ -346,8 +346,8 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, props.setProperty(Constants.CFG_SIGNATURE_LOCALE, LocaleSerializer.getParsableString(signatureLocale)); } - if (!getSignaturePdfACompat()) - props.setProperty(Constants.CFG_SIGNATURE_PDFA_COMPAT, Constants.FALSE); + if (getSignaturePdfACompat()) + props.setProperty(Constants.CFG_SIGNATURE_PDFA_COMPAT, Constants.TRUE); SignaturePosition pos = getDefaultSignaturePositionPersistent(); if (pos == null) { diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java index cbc4a90e..7ae29f41 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java @@ -80,7 +80,7 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { protected Locale signatureLocale = null; /** Holds the PDF/A compatibility setting */ - protected boolean pdfACompat = true; + protected boolean pdfACompat = false; /** Holds the output folder */ protected String folder = null; 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 1ab34e0e..fab1103a 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 @@ -20,7 +20,7 @@ advanced_config.OutputFolder.Dialog_Title=Select Output folder advanced_config.OutputFolder_Title=&Output location 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 signature PDF/A compatible (increases pdf size) advanced_config.ProxyHost=Host\: advanced_config.ProxyHost_Template=Hostname or IP of the proxy server advanced_config.ProxyHost_ToolTip=To use a proxy server enter the hostname or the IP here 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 edaa6deb..29e2e958 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 @@ -20,7 +20,7 @@ advanced_config.OutputFolder.Dialog_Title=Ausgabeordner w\u00E4hlen advanced_config.OutputFolder_Title=Ausgabe&ort 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) 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 -- cgit v1.2.3