Hi, I did the same. Though quite expensive, I hired an agency that had connections with Spanish diplomats (in my case, India)
and obtained a digitalised document along with legalisation. I hope you also asked for translation of the same in English/French. I submitted the same and got my PR...