If you have problems with the margins of your printout, can you try the following:
Edit the PPD file for your print queue, /etc/cups/ppd/<queue name>.ppd. Look for a line beginning with "*HPMechOffset:" and modify the number in it, for example change
*HPMechOffset: "70"
to
*HPMechOffset: "50"
Then restart CUPS:
sudo service cups restart
or
sudo restart cups
and print again. Did the printout move on the paper? Did it move closer to the expected position? Repeat the steps with other numbers for "*HPMechOffset:",
If you succeed to correct the problem this way, tell us which printer you have and which value was best. Tell us also if you did not succedd and also for that case which printer you have.
If you have problems with the margins of your printout, can you try the following:
Edit the PPD file for your print queue, /etc/cups/ ppd/<queue name>.ppd. Look for a line beginning with "*HPMechOffset:" and modify the number in it, for example change
*HPMechOffset: "70"
to
*HPMechOffset: "50"
Then restart CUPS:
sudo service cups restart
or
sudo restart cups
and print again. Did the printout move on the paper? Did it move closer to the expected position? Repeat the steps with other numbers for "*HPMechOffset:",
If you succeed to correct the problem this way, tell us which printer you have and which value was best. Tell us also if you did not succedd and also for that case which printer you have.