The primary principle at work in a laser printer is static electricity, the same energy that makes clothes in the dryer stick together or a lightning bolt travel from a thundercloud to the ground. Static electricity is simply an electrical charge built up on an insulated object, such as a balloon or your body. Since oppositely charged atoms are attracted to each other, objects with opposite static electricity fields cling together.
A laser printer uses this phenomenon as a sort of "temporary glue." The core component of this system is the photoreceptor, typically a revolving drum or cylinder. This drum assembly is made out of highly photoconductive material that is discharged by light photons.