I understand in you are not able to print and the printers shows offline, Please follow the below link to resolve the issue
Once you open the given link select your opeartion system and proceed with the troubleshooting. if you still have any issue please revert with more details to resolve the issue
I am an HP employee
However the post are my own.
Click the KUDOS star on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.