Is it mandatory to travel to Spain?

Yes, it is necessary to sign before the notary.