I am using pyhanko for a digital sign app development.
A PDF signature is always contained in a signature field in the PDF’s form structure. Freeware PDF readers that do not have form editing functionality will typically not allow you to manipulate signature fields directly, but might allow you to fill existing form fields with a signature, or create a signature together with its corresponding form field. Using pyHanko, we can both insert new (empty) signature fields, and fill in existing ones.
If someone had experience in pyhanko, could you help me with that?
Here is a sample code;
from pyhanko.sign import fields
fields.SigFieldSpec(
'Sig1', box=(10, 74, 140, 134),
field_mdp_spec=fields.FieldMDPSpec(
fields.FieldMDPAction.INCLUDE, fields=['SomeTextField']
),
doc_mdp_update_value=fields.MDPPerm.FORM_FILLING
)