If print jobs are stuck in the print spooler, and you cannot cancel it manually, you need other ways to get the printing system to function normally.
The print job may get stuck when trying to take printouts on any printer, so this is not necessarily a troubleshooting method for HP printer problems alone; although the steps may vary slightly for other printers.