Skip to content

Unable to do multiple signatures on a single PDF document #108

Discussion options

You must be logged in to vote

First off, pyHanko should never attempt to overwrite the value of a signature field. When in doubt, it should throw an error before signing. If it ends up clobbering the previous signature, then it's probably a bug, and I'd like to see your code so I can figure out what's triggering that behaviour.

While applying multiple signatures to a PDF document is certainly possible (and pyHanko supports that use case) there are a couple of things you need to be careful with:

  • Give your signature fields distinct names
  • Ensure you're signing in append mode, i.e. using IncrementalPdfFileWriter (this one is critical)
  • Preferably, create all your (empty) signature fields before putting in the first signat…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Vishwamithra37
Comment options

@MatthiasValvekens
Comment options

@Vishwamithra37
Comment options

@MatthiasValvekens
Comment options

Answer selected by Vishwamithra37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants