Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have software that generates PDFs and sends them to print via the lp program. The same PDF prints slightly different to 2 different printers. The font and margins are different.

How can I standardize the margins and font between the two printers? Is this just a difference in the drivers for each printer?

Before you suggest it, the page-top etc options do not have any effect.

share|improve this question

All printers have their default settings and no two printers print exactly the same. If you want them to print the document out exactly I would start by looking at each of the printers Margin settings.

share|improve this answer
How can I modify a printer's margin settings from the command line? – ryeguy Feb 13 '12 at 21:01
to set margins on command line, use lp -o page-left=value -o page-right=value -o page-top=value -o page-bottom=value filename where value is in points (1/72") – sig_seg_v Jan 24 at 6:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.