diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-08 13:32:30 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-08 13:32:30 +0200 |
commit | 3679f37f129b16daadb490d6987fdd038b096bfc (patch) | |
tree | 960193629b0899d90297d5f918f337024fad1db5 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow | |
parent | 84a9465b14154f3e56a6b772d21e70f1c60bdf47 (diff) | |
download | pdf-over-3679f37f129b16daadb490d6987fdd038b096bfc.tar.gz pdf-over-3679f37f129b16daadb490d6987fdd038b096bfc.tar.bz2 pdf-over-3679f37f129b16daadb490d6987fdd038b096bfc.zip |
cached asynchronous pdf-as placeholders
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java | 7 |
1 files changed, 5 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 f814bd85..1a4767dd 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 @@ -37,6 +37,7 @@ import at.asit.pdfover.gui.workflow.config.ConfigurationManager; import at.asit.pdfover.signator.Emblem; import at.asit.pdfover.signator.SignaturePosition; import at.asit.pdfover.signer.pdfas.PdfAs4SignatureParameter; +import at.asit.pdfover.signer.pdfas.PdfAs4SignaturePlaceholder; /** * Decides where to position the signature block @@ -117,9 +118,11 @@ public class PositioningState extends State { param.signatureLanguage = config.getSignatureLocale().getLanguage(); param.enablePDFACompat = config.getSignaturePdfACompat(); - this.positionComposite.setPlaceholder( - param.getPlaceholder(), + PdfAs4SignaturePlaceholder.For(param, (p) -> { + this.positionComposite.setPlaceholder( + p.getAWTImage(), config.getPlaceholderTransparency()); + }); if (this.previousPosition != null && !this.previousPosition.useAutoPositioning()) { |