EUV spectral energy distribution of quasars restored from associated absorbers