Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Date and time placeholders in addTextStamp are not working (#5446)

Joey15c5b0eb92d9
diff --git a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java
index bba892abe6..3df1eff9e9 100644
--- a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java
+++ b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java
@@ -273,7 +273,7 @@ public class StampController {
// Split the stampText into multiple lines
String[] lines =
- RegexPatternUtils.getInstance().getEscapedNewlinePattern().split(stampText);
+ RegexPatternUtils.getInstance().getEscapedNewlinePattern().split(processedStampText);
// Calculate dynamic line height based on font ascent and descent
float ascent = font.getFontDescriptor().getAscent();