MatthiasValvekens / pyHanko

pyHanko: sign and stamp PDF files
MIT License
511 stars 74 forks source link

Missing import in documentation #143

Closed spuigdengolas closed 2 years ago

spuigdengolas commented 2 years ago

The snippet is missing importing fields module from pyhanko.sign

Static content stamps

from pyhanko import stamp
from pyhanko.pdf_utils.incremental_writer import IncrementalPdfFileWriter
from pyhanko.sign import signers
   ...
    fields.append_signature_field(
        w, sig_field_spec=fields.SigFieldSpec(
            'Signature', box=(200, 600, 400, 660)
        )
    )
   ...

Suggested:

from pyhanko.sign import signers, fields
MatthiasValvekens commented 2 years ago

Good catch, thank you! I've added the missing import.