Set PDF to print with no scaling

后端 未结 7 1269
名媛妹妹
名媛妹妹 2020-12-17 18:35

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

7条回答
  •  有刺的猬
    2020-12-17 19:26

    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...

提交回复
热议问题