 Alternatively, it may be prepared by treating the anhydride with ammonium carbonate or urea.It can also be produced by ammoxidation of "o"-xylene.Phthalimide is used as a precursor to anthranilic acid, a precursor to azo dyes and saccharin.