From a9fb8ac7fa73d2908735d8016609e15c954bcbdf Mon Sep 17 00:00:00 2001 From: bschnalzer Date: Mon, 11 Dec 2017 14:33:24 +0100 Subject: ProtectPDF, PDFA --- .../java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java | 1 + .../configuration/PlaceholderConfiguration.java | 21 ++++++--------------- .../impl/placeholder/SignaturePlaceholderData.java | 3 ++- .../at/knowcenter/wag/egov/egiz/table/Style.java | 7 +++++-- 4 files changed, 14 insertions(+), 18 deletions(-) (limited to 'pdf-as-lib/src') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java index e8cdd955..c19b7b10 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java @@ -372,6 +372,7 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants, logger.info("ByteRange: " + sb.toString()); + request.setSignatureData(signatureDataExtractor .getSignatureData()); request.setByteRange(byteRange); diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java index 6e91e808..b20215fc 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java @@ -24,27 +24,16 @@ package at.gv.egiz.pdfas.lib.impl.configuration; import at.gv.egiz.pdfas.common.settings.ISettings; -import at.gv.egiz.pdfas.common.settings.Profiles; -import at.gv.egiz.pdfas.common.settings.SignatureProfileSettings; -import at.gv.egiz.pdfas.lib.api.Configuration; import at.gv.egiz.pdfas.lib.api.IConfigurationConstants; -import at.gv.egiz.pdfas.lib.api.PdfAs; -import at.gv.egiz.pdfas.lib.impl.PdfAsImpl; -import at.gv.egiz.pdfas.lib.impl.PdfAsParameterImpl; -import at.gv.egiz.pdfas.lib.impl.placeholder.SignaturePlaceholderData; -import at.gv.egiz.pdfas.lib.impl.status.OperationStatus; -import at.gv.egiz.pdfas.lib.settings.Settings; -import at.gv.egiz.pdfas.lib.util.SignatureUtils; -import at.gv.egiz.pdfas.lib.api.PdfAs; -import com.sun.corba.se.spi.orb.Operation; - -import java.security.Signature; -import java.util.Properties; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class PlaceholderConfiguration extends SpecificBaseConfiguration implements IConfigurationConstants { + private static final Logger logger = LoggerFactory.getLogger(PlaceholderConfiguration.class); + public PlaceholderConfiguration(ISettings configuration) { super(configuration); } @@ -67,10 +56,12 @@ public class PlaceholderConfiguration extends SpecificBaseConfiguration */ public boolean isProfileConfigurationEnabled(String selectedProfileID) { + logger.info("SelectedProfileID in ProfileConfEnabled: "+selectedProfileID); String profileMatch = SIG_OBJECT+SEPERATOR+selectedProfileID+SEPERATOR+PLACEHOLDER_SEARCH_ENABLED; if (configuration.hasValue(profileMatch)) { String value = configuration.getValue(profileMatch); if (value.equalsIgnoreCase(TRUE)) { + logger.info("Configuration has Value: "+value); return true; } } diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java index cf0ad149..3dbedee5 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java @@ -54,7 +54,8 @@ import at.knowcenter.wag.egov.egiz.pdf.TablePos; * @author exthex * */ -public class SignaturePlaceholderData { +public class +SignaturePlaceholderData { public static final String ID_KEY = "id"; diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Style.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Style.java index a3af957d..e2fa7062 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Style.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Style.java @@ -49,6 +49,10 @@ package at.knowcenter.wag.egov.egiz.table; import java.awt.Color; +import java.awt.color.ColorSpace; +import java.awt.color.ICC_ColorSpace; +import java.awt.color.ICC_Profile; +import java.awt.color.ICC_ProfileRGB; import java.io.Serializable; /** @@ -505,7 +509,7 @@ public class Style implements Serializable { /** * Sets the scaleToFit dimensions to be applied for image-cells. - * @param imageScaleToFit_ The scaleToFit dimensions to be applied for image-cells. + * @param imageScaleToFit The scaleToFit dimensions to be applied for image-cells. */ public void setImageScaleToFit(ImageScaleToFit imageScaleToFit) { @@ -531,7 +535,6 @@ public class Style implements Serializable { * * @param baseStyle the style object that serves as a primary style source. * @param inheritStyle the style object that serves as a secondary style source in case a style attribute is not defined on the primary style source. - * @param isValue * @return Returns a new Style object being fully equipped with styles. */ public static Style doInherit(Style baseStyle, Style inheritStyle) { -- cgit v1.2.3