The photoluminescence spectra of aromatic compounds in a photon trap under ultraviolet pulse-periodic excitation are recorded. It is shown that the photoluminescence spectrum shape depends on the material layer thickness in a cell, physical state of the sample, and exciting radiation characteristics: as the layer thicknesses decreases, the intensity is significantly redistributed, which is explained by the transition from spontaneous luminescence to superluminescence.