PDF from pdfLaTeX doesn’t print correctly

cupslatexpdfprinting

I am trying to print a PDF file generated with pdfLaTeX, but the OS X (10.8) CUPS always shifts and scales the content of the page, without me having any chance to change that behavior.

To reproduce:

  1. Create PDF using pdfLaTeX

    pdflatex testpage
    
  2. Choose paper size and/or double sided

  3. Open document

    open testpage.pdf
    

Everything looks as expected in the Preview application, but when I select "Print", even when setting the scale to 100%, the margins are different on all sides, the print size is wrong and shifted. This does not depend on the printer driver I select to print. I have tested with a Canon, a TA and a Dell printer.

Even in the CUPS web interface, I could not find a way to prevent it from altering the document layout.

The print preview in Preview seems accurate, but the scaling and positioning is incorrect as it then comes out of the printer.

How can I fix this?

Best Answer

Indeed, the whole problem was rooted in the generated PDF file having letter paper format.

After configuring MacTeX to use default a4 paper

texconfig paper a4

Everything is printed as expected.