How does a printer work?

How does a printer work?Printers have existed for some time now and have…