Skip to content

Please provide option to add PNG image as signature in the signature widget #65

Discussion options

You must be logged in to vote

Yes, that's possible; see here: https://pyhanko.readthedocs.io/en/latest/cli-guide/config.html#styles-for-stamping-and-signature-appearances and https://pyhanko.readthedocs.io/en/latest/api-docs/pyhanko.stamp.html#pyhanko.stamp.BaseStampStyle.

In particular, note the following:

  • The background entry in a style definition can take a PNG image as its argument (or even another PDF).
  • You can leave the stamp-text empty.
  • There's a background-opacity option (which is only documented in the API reference at this point, but it works in config as well) that allows you to have the background displayed with full opacity.

Combining these, it's possible to set up a signature appearance with only an im…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MatthiasValvekens
Comment options

@ghoshpushpendu
Comment options

Answer selected by ghoshpushpendu
Comment options

You must be logged in to vote
3 replies
@MatthiasValvekens
Comment options

@ghoshpushpendu
Comment options

@MatthiasValvekens
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MatthiasValvekens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #64 on December 05, 2021 09:49.