Text this: Preparing arbitrary pure states of spatial qudits with a single phase-only spatial light modulator