Well as I don't know this particular printer I'll give you a general answer to cover most printer problems.
Firstly when it does print out something is it a clear print? Is the paper damaged at all?
If you are getting a paper jam error message it is always something to do with the paper handling of the printer and since all HP printers are made by Canon they should have very good paper handling abilities but they are limited in paper weight and generally like 80 GSM paper and not much either way the lighter paper has problems of not being feed properly and jams and the heaver paper/card has similar problems as well.
If you can get a constant good result from other applications it has to be a software issue but if the ability to print clearly has been diminished there most likely is something mechanical wrong with the printer. But as you are saying it is only from one application that you are having problems I would first be looking at a software issue have you installed something just prior to the problem starting?
The obvious thing to do would be to un-install the printer and reinstall the drivers to see if that improves things and follow what the book tells you to do as there are several different ways to install this printer and if you do not do it properly it will not work properly.
If you would like to post what version of Windows you are using and how the printer is connected it would be helpful but short of straight mechanical damage or the things like the rollers going hard and no longer picking up and moving the paper properly or leaving marks on the printed page it has to be a software issue.
Have you tried printing a blank page to see what happens?