diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-03 15:16:51 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-03 15:16:51 +0200 |
commit | daeec3d00467067887a9c606efa7495f163c8f0a (patch) | |
tree | 3854c044ad9841799744f121e5a7302ffe3bc1af | |
parent | 8b364e1752442a0cb6c2ae714c3e4f4c085e0a1b (diff) | |
download | pdf-over-daeec3d00467067887a9c606efa7495f163c8f0a.tar.gz pdf-over-daeec3d00467067887a9c606efa7495f163c8f0a.tar.bz2 pdf-over-daeec3d00467067887a9c606efa7495f163c8f0a.zip |
correct signature profile in positioning placeholder
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java index 3bcf18bc..15a67876 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java @@ -103,9 +103,12 @@ public class PositioningState extends State { log.debug("Displaying " + stateMachine.status.document); this.positionComposite.displayDocument(document); } - // Update possibly changed values + ConfigurationManager config = stateMachine.configProvider; - PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); // TODO: these don't actually reflect the chosen settings + + PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); + param.signatureProfileName = config.getSignatureProfile(); + Emblem emblem = new Emblem(config.getDefaultEmblemPath()); param.emblem = emblem; if(config.getSignatureNote() != null && !config.getSignatureNote().isEmpty()) { @@ -118,11 +121,14 @@ public class PositioningState extends State { this.positionComposite.setPlaceholder( param.getPlaceholder(), config.getPlaceholderTransparency()); + if (this.previousPosition != null && !this.previousPosition.useAutoPositioning()) + { this.positionComposite.setPosition( this.previousPosition.getX(), this.previousPosition.getY(), this.previousPosition.getPage()); + } return this.positionComposite; } |