The experimental data of the isotopic distribution for projectile-like fragments are presented for the 17,18N + 197Au reaction at 33 MeV/u. The width of the isotopic distributions for lSN projectile is significantly broader than that for 17N projectile, and the average N/Z ratio of the former shifts to higher neutron number side. As long as the realistic nucleon density distribution is used, the isotopic distribution for fragments is reproduced by the simple abrasion-ablation model calculation, which thus provides an independent way to determine the surface distribution of the nuclear matter density for neutron-rich nuclei.