The response of a large-area avalanche photodiode to x-rays was investigated by applying pulse-shape discrimination techniques based on rise time. The method employed analogue pre-shaping with time constants of 200 ns followed by digital signal processing in a commercial 125-Mhz digitiser. Pulse rise-time discrimination was applied to improve detector energy resolution, background level, and peak distortion. Electronic noise pulses can be efficiently removed at the expense of data acquisition throughput.