From 8e6acd9237c2458c66f8c747a64a1feb68172b35 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 4 Aug 2022 16:27:31 +0200 Subject: emblem image parsing for width/height cf. #113 --- .../java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java | 2 +- .../src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-over-signer/src/main') diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java index cea41bdd..c52625dd 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java @@ -85,7 +85,7 @@ public class PdfAs4SignatureParameter { public Image getPlaceholder() { String sigProfile = getPdfAsSignatureProfileId(); - String sigEmblem = (this.emblem == null ? null : this.emblem.getFileName()); + String sigEmblem = (this.emblem == null ? null : this.emblem.getCachedFileName()); String sigNote = getProperty("SIG_NOTE"); try { diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java index 952f1971..7a67a35a 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java @@ -46,7 +46,7 @@ public class PdfAs4Signer { } String sigProfile = parameter.getPdfAsSignatureProfileId(); - String sigEmblem = (parameter.emblem == null ? null : parameter.emblem.getFileName()); + String sigEmblem = (parameter.emblem == null ? null : parameter.emblem.getCachedFileName()); String sigNote = parameter.getProperty("SIG_NOTE"); String sigPos = null; if (parameter.signaturePosition != null) { -- cgit v1.2.3