Detailed description of issue
I’m saving signatures that the user draws. If the user creates a signature using first the blue colour and then a second using red, then the signatures will be shown in the drop down using the correct colour.
However, if I save the signatures and then try to import the signatures again then both of the signatures in the drop down will be red instead of blue and red.
You can see in the example below that the Blue signature was originally saved as blue and added to the PDF. When I opened the editor later the signature was still blue in the PDF but it had changed to red in the drop down menu.
exportSignatures only exports the freehand paths, a list of points. The colour is tied to the annotation or tool, which is not included with the path data. So when you import the paths for the signatures it defaults to the tool’s current colour.
I would instead use saveSignatures() and getSavedSignatures() which returns the annotation data in XFDF which will save the colour.