Needs a new printhead which costs about $25 on eBay or you might be able to fix it yourself. It can still be used as a scanner if you don't need/want to replace or fix the printhead.
More info:
https://support.hp.com/us-en/product/details/hp-officejet-pro-8710-all-in-one-printer-series/7902014