Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Feature Request]: Add date and/or time to a stamp

Open azfirefighter opened this issue 4 months ago • 1 comments

Feature Description

It would be nice to be able to automagically add a time and/or date option when stamping a file.

Ex: Stamping with a “RECEIVED” stamp and having a date and/or time stamped below or after it.

Why is this feature valuable?

It would help people and offices who scan mail into their systems to reduce storage space. The added date/time would help them with “RECEIVED”, “PAID” and similar stamps.

Suggested Implementation

No response

Additional Information

No response

No Duplicate of the Feature

  • [x] I have verified that there are no existing features requests similar to my request.

azfirefighter avatar Aug 23 '25 00:08 azfirefighter

A relatively easy way to implement this would be to replace certain known fields like @date or @time in the stamp text with their respective values. Some preprocessing already takes place while splitting the input into lines: https://github.com/Stirling-Tools/Stirling-PDF/blob/409cada93a40cfc606f3fab3aff2f91f394e96b5/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java#L254 It should be trivial to add another stage to replace certain fields immediately before that. I would suggest:

  • @date: ISO date
  • @time: ISO time (UTC)
  • @page_count: Number of pages in the document (important based on OP's usecase under "RECEIVED")
  • Document metadata (maybe?)

adityaruplaha avatar Aug 24 '25 10:08 adityaruplaha

Hi, may I work on this one?

Luis-EncoraDev avatar Sep 09 '25 18:09 Luis-EncoraDev

Sure!

Frooodle avatar Sep 09 '25 19:09 Frooodle