When yourhp printer says out of paper, it is an issue usually related to paper jamming. To fix this, follow the steps below:
Cancel the print job from your computer.
Remove any jammed paper from the tray and sheet feeder.
Press the start button and check if the issue still appears. If it shows an error, then follow the next step.
Turn off the printer by pressing the power button.
Check if paper is jammed inside the scanner unit.
Close the scanner unit and press the power button.