Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Add date #9

Closed
GregorySchwartz opened this issue May 13, 2024 · 6 comments
Closed

Request: Add date #9

GregorySchwartz opened this issue May 13, 2024 · 6 comments

Comments

@GregorySchwartz
Copy link

Most forms that require a signature also require the associated date. It would be nice to add a feature to add not only a signature, but also text or at least the date.

@svenssonaxel
Copy link
Owner

I agree that dating would be useful, but I don't want such a feature to complicate the interface too much. If you are willing to provide ideas, feedback and critique on the design, then perhaps we can work out a good design together. I'd like the design to fulfill at least the following:

  • Good defaults and easy to configure
  • Easy to do just signature, or just date/text, or both
  • Easy interfaces, both CLI and GUI.

Starter problem: Right now you can simply click in the GUI to position the signature. How could this feature be added without making that less intuitive?

I can't promise to work on this in a timely manner even given the design, but it's safe to say I won't without it!

@svenssonaxel
Copy link
Owner

Also, if it's a PDF form you can fill out the form including the date and save it, then sign.

@rocketraman
Copy link

rocketraman commented Jul 4, 2024

The interface used by Adobe Reader to do Fill and Sign is pretty good. You could take inspiration from there :-) The main Fill and Sign controls are basically:

  • Signature
  • Initials
  • Text (which includes useful options for Checkmark and Crossmark)

I would love to have a native Linux app that can do all this. At the moment I have to fire up a Windows VM every time.

@svenssonaxel
Copy link
Owner

I suppose signatures, initials, check marks and cross marks can all be individual pdf files that you can include in your signature directory. That would mean no functionality has to change. Perhaps I can even include a few pdf files in the repository that many people could find use for, e.g. check- and cross marks.

Adding more than one thing to a pdf is technically already supported too; you just have to run pdf-sign twice.

If you had a small pdf containing only the text you want to add, e.g. today's date, you could technically use pdf-sign with that. But this no longer seems so simple, because then you'd need to find a way to create such a pdf. So perhaps that should be added; a way to temporarily add a "signature" made up by a certain text. For example, --text "2024-07-06" would add a pre-selected signature option for that particular run. I think this has potential to be a simple enough design. Does it sound usable in practice?

@rocketraman
Copy link

Personally I'd prefer a simple GUI menu or controls over an interface like that similar to Acrobat Reader, but at least that would offer a working approach.

svenssonaxel added a commit that referenced this issue Jul 12, 2024
@svenssonaxel
Copy link
Owner

I now have a draft solution, pushed to branch dev. As before, all functionality is reachable both through CLI and GUI. Oh, and I also added another tool pdf-from-text if you want to create reusable signatures from a line of text. Let me know what you think!

GUI

In order to date and sign a pdf, you'd do it in two steps:

  • Run pdf-sign -o document.dated.pdf document.pdf. Use menu item Signature->Custom Text or press T. This lets you add a text rather than signature. The current date is the default. Sign as usual, producing document.dated.pdf
  • Run pdf-sign -o document.signed.pdf document.dated.pdf and sign as usual.

CLI

pdf-sign -bt `date -I` -y 0.65 -o document.dated.pdf document.pdf
pdf-sign -bs path/to/my/signature.pdf -o document.signed.pdf document.dated.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants