From 3679f37f129b16daadb490d6987fdd038b096bfc Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Mon, 8 Aug 2022 13:32:30 +0200 Subject: cached asynchronous pdf-as placeholders --- .../java/at/asit/pdfover/gui/workflow/states/PositioningState.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow') 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()) { -- cgit v1.2.3