This is a 'Thermal ink jet' with the 'heads' in cartridge so swapping these around would rule out a simple cart failure.
Trying on another PC rules out data corruption seemingly
So the safe assumption is the printer has had its time.
Which to buy?
Well if you are used to the peculiarities of HP look in that direction.
As you have a dedicated photo printer and a separate scanner- perhaps a cheap general purpose printer will serve.
THe world is your oyster constrained only by depth of your purse.
Allinones can be finicky to use and if the printer goes down you lose also the scanner
I have currently 3 such each a different brand that have discarded as broken by others - in each case I have got them going- and actually use them as a 'Swap-out' service among my 'Flock'