Use AirPrint on your Mac
You can use AirPrint to print wirelessly to:
An AirPrint-enabled printer on your Wi-Fi network
A network printer or printer shared by another Mac on your Wi-Fi network
A printer connected to the USB port of an AirPort base station
Print to an AirPrint printer. When you print from an app, click the Printer pop-up menu in the Print dialog, then choose a printer in the Nearby Printers list.
Can’t find the printer you’re looking for? Make sure it’s connected to the same Wi-Fi network as your iMac. If it’s connected and you still don’t see it, try adding it: Click the System Preferences icon in the Dock, click Printers & Scanners, then click . (You may have to temporarily connect the printer to your iMac using a USB cable.)
Learn more. See Print wirelessly from your Mac to an AirPrint printer in the macOS User Guide.
For a list of AirPrint-enabled printers and other supported printers, see the Apple Support article About AirPrint.