We present a 32 channel indium phosphide integrated pulse shaper with 25 GHz channel spacing, where each channel is equipped with a semiconductor optical amplifier allowing for programmable line-by-line gain control with submicrosecond reconfigurability. We critically test the integrated pulse shaper by using it in comb-based RF-photonic filtering experiments where the precise gain control is leveraged to synthesize high-fidelity RF filters which we reconfigure on a microsecond time scale. Our on-chip pulse shaping demonstration is unmatched in its combination of speed, fidelity, and flexibility, and will likely open new avenues in the field of advanced broadband signal generation and processing.