diff options
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 | 6 | ||||
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java | 16 |
2 files changed, 11 insertions, 11 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 ea6f3003..5ed63e0b 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 @@ -109,13 +109,13 @@ public class PositioningState extends State { ConfigurationManager config = stateMachine.configProvider; PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); Emblem emblem = new CachedFileNameEmblem(config.getDefaultEmblem()); - param.setEmblem(emblem); + param.emblem = emblem; if(config.getSignatureNote() != null && !config.getSignatureNote().isEmpty()) { param.setProperty("SIG_NOTE", config.getSignatureNote()); } - param.setSignatureLanguage(config.getSignatureLocale().getLanguage()); - param.setSignaturePdfACompat(config.getSignaturePdfACompat()); + param.signatureLanguage = config.getSignatureLocale().getLanguage(); + param.enablePDFACompat = config.getSignaturePdfACompat(); this.positionComposite.setPlaceholder( SignaturePlaceholderCache.getPlaceholder(param), diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java index 26fd0cab..786ed920 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java @@ -128,14 +128,14 @@ public class PrepareSigningState extends State { this.state.signatureParameter = new PdfAs4SignatureParameter(); } - this.state.signatureParameter.setInputDocument(new PDFFileDocumentSource(status.document)); - this.state.signatureParameter.setSignatureDevice(status.bku); + this.state.signatureParameter.inputDocument = new PDFFileDocumentSource(status.document); + this.state.signatureParameter.signatureDevice = status.bku; if (status.signaturePosition != null) { - this.state.signatureParameter.setSignaturePosition(status.signaturePosition); + this.state.signatureParameter.signaturePosition = status.signaturePosition; } if (configuration.getDefaultEmblem() != null && !configuration.getDefaultEmblem().isEmpty()) { - this.state.signatureParameter.setEmblem(new CachedFileNameEmblem(configuration.getDefaultEmblem())); + this.state.signatureParameter.emblem = new CachedFileNameEmblem(configuration.getDefaultEmblem()); } if (configuration.getSignatureNote() != null @@ -144,13 +144,13 @@ public class PrepareSigningState extends State { "SIG_NOTE", configuration.getSignatureNote()); } - this.state.signatureParameter.setSearchForPlaceholderSignatures(getStateMachine().status.searchForPlacehoderSignature); + this.state.signatureParameter.searchForPlaceholderSignatures = getStateMachine().status.searchForPlacehoderSignature; - this.state.signatureParameter.setSignatureLanguage(configuration.getSignatureLocale().getLanguage()); + this.state.signatureParameter.signatureLanguage = configuration.getSignatureLocale().getLanguage(); - this.state.signatureParameter.setSignaturePdfACompat(configuration.getSignaturePdfACompat()); + this.state.signatureParameter.enablePDFACompat = configuration.getSignaturePdfACompat(); - this.state.signatureParameter.setSignatureProfile(configuration.getSignatureProfile()); + this.state.signatureParameter.signatureProfileName = configuration.getSignatureProfile(); this.state.signingState = PdfAs4Signer.prepare(this.state.signatureParameter); |