Hey there,
I actually cannot reproduce this issue with the standard signature flow.
How are you exporting the XFDF? Is the XFDF you are importing the same XFDF that was exported from the document?
Im testing by doing the following flow:
- Open a document with a signature field
- Sign the field by clicking “sign here” and adding a signature
- Exporting the XFDF and saving it somewhere
- Reopen the original document
- Import the previously saved XFDF
When I reimport that XFDF, the “Sign here” button goes away as expected.
I do not need to do any of the WidgetAnnot.annot = annotation
stuff to make this work.
Logan