From 897664089ed6b3082d3dcca946533c83268a79bb Mon Sep 17 00:00:00 2001 From: Alexander Marsalek Date: Fri, 25 Jun 2021 09:16:31 +0200 Subject: fix for issue #47 --- .../main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java index ab118857..f71b639a 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java @@ -113,6 +113,9 @@ public class ValueResolver implements IProfileConstants, IResolver { String tmp2 = internalResolver.resolve(key, tmpValue, settings); result += tmp2; } while (matcher.find()); + if(value.length() > curidx){ + result += value.substring(curidx); + } } else { result = value; } -- cgit v1.2.3