The x-ray cascade from antiprotonic atoms was studied for 106Cd, 116Cd, 112Sn, 116Sn, 120Sn, and 124Sn. Widths and shifts of the levels due to strong interaction were deduced. Isotopic effects in the Cd and Sn isotopes are clearly seen. The results are used to investigate the nucleon density in the nuclear periphery. The deduced neutron distributions are compared with the results of the previously introduced radiochemical method and with HFB calculations.