For many older printers, the print drivers are only available from Apple Software Update.
Normally, drivers for a previously installed printer will be automatically downloaded and installed.
Follow these steps to update the driver for your printer in mac OS X.
To upgrade the drivers for a previously installed printer, run Apple Software Update.
If the driver is not automatically installed by Apple Software Update, manually download the entire driver package from Apple Support.
For OS X 10.9 and newer: HP Printer Drivers v5.1 for OS X (DL1888)
For OS X 10.7 and 10.8: HP Printer Drivers v3.1 for OS X (DL907)
For driver availability information, go to HP LaserJet - Older HP printers with macOS drivers.
Add the HP printer driver to the Printers & Scanners list using a USB, wired network, or wireless network connection.
1AirPrint and the AirPrint logo are trademarks of Apple Inc.