Resonant absorption in the active galactic nucleus spectra emerging from photoionized gas: Differences between steep and flat ionizing continua