How to Automatically Extract Signatures from Documents