I asume your printer only prints those two inches both when copying and processing a printjob ?
If so you could be facing one of several issues...
1) The high voltage charge of the transfer roller.
2) The power supply to the toner.
3) Issues with the laser.
4) Fuser issue.
5) Print engine (ECU) error.
Does the print stop with a fading effect or is it sharp where the print ends ?
Verify also the print on the paper is fused properly on the paper and cannot be rubbed off with a nail.
If the cut where the print stops is sharp, there might be an issue with the laser stopping to emit light to the image drum in the toner.
In that case you might notice a 51.XX error when trying to print or view the eventlog via the HP toolbox software.
Look for other error messages in that eventlog like 10.XX (cartridge related) 49.XX or 54.XX (engine related).
To perform a half self-test check
1) Print a self-test page. (Load paper in the upper manual feed tray and leave the tray below empty)
2) Open the print-cartridge door after the paper advances halfway through the printer (about 5 seconds after the motor begins to rotate). The leading edge of the paper should have advanced past the print cartridge.
3) Remove the print cartridge.
4) Open the print cartridge drum shield to view the drum surface. If a dark and distinct toner image is
present on the drum surface, assume that the first three functions of the image-formation process are functioning correctly (through the development stage).
Troubleshoot the failure as a transfer or fusing problem.
NOTE This test is especially important if refilled print cartridges have been used.
1) Open the print-cartridge door.
2) Remove the print cartridge.
3) Mark the drive gear on the cartridge with a felt-tipped marker. Note the position of the mark.
4) Install the print cartridge and close the print-cartridge door. The startup sequence should rotate the
drum enough to move the mark.
5) Open the print-cartridge door and inspect the gear that was marked in step 3. Verify that the mark moved. If the mark did not move, inspect the main drive assembly to make sure that it is meshing with the printcartridge gears. If the drive gears appear functional and the drum does not move, replace the print cartridge.
High-voltage contacts check:
The high-voltage contacts in the product must have a good connection with the contacts on the print cartridge to provide the necessary voltages for the image-formation processes. To check the print-cartridge contacts
Remove the print cartridge and visually inspect the three connection points on the end of the print cartridge. If they are dirty or corroded, clean them with isopropyl alcohol. If they are damaged,replace the print cartridge.
NOTE Use only isopropyl alcohol to clean the connections.