Set PDF to print with no scaling

JCam picture JCam · Jan 18, 2011 · Viewed 35.5k times · Source

I am generating a PDF (using fpdf) and I am wondering if there is a way to set the document's properties to to default to print with no scaling.

So when you select print from the print dialogue menu, scaling is set to none. I'm trying to determine if this is a user setting or something I can control in the creation of the PDF.

Thanks in advance.

Answer

onosenday picture onosenday · Dec 9, 2011

I've done it adding to the method _putcatalog() the following:

$this->_out('/ViewerPreferences [/PrintScaling/None]');

After the line:

$this->_out('/Type /Catalog');

Implementing a method is just fast and easy...