What does pencil pushing mean?

Doing pointless, seemingly unessacary work. Usually used to describe someone that has been "de-moted" or "de-ranked".