We describe proof-of-principle experiments demonstrating a novel approach for generating pulses of light with controllable photon numbers, propagation direction, timing, and pulse shapes. The approach is based on preparation of an atomic ensemble in a state with a desired number of atomic spin excitations, which is later converted into a photon pulse. Spatiotemporal control over the pulses is obtained by exploiting long-lived coherent memory for photon states and Electromagnetically Induced Transparency in an optically dense atomic medium. Using photon counting experiments, we observe Electromagnetically Induced Transparency based generation and shaping of few-photon sub-Poissonian light pulses.