An image forming apparatus is operable to form an image on a recording
medium. An image carrier is adapted such that a toner image is formed
thereon by developing an electrostatic latent image. An intermediate
transfer member is adapted such that the toner image is primarily
transferred thereto. In a transfer device, a roller member is adapted to
come in contact with the intermediate transfer member. A first bias
voltage applier is operable to provide a transfer voltage, thereby
applying a first bias voltage between the roller member and the
intermediate transfer member to secondarily transfer the toner image onto
the recording medium in order to obtain the image. A charge eliminator is
disposed in the vicinity of the roller member. A second bias voltage
applier is operable to apply a second bias voltage to the charge
eliminator to eliminate charges on the recording medium which has been
subjected to the application of the first bias voltage. A controller is
operable to vary the second bias voltage in accordance with a deviation
amount of the first bias voltage.