From 9255c3b3cdf82734a3e7bab4ecfe939cef65d5c3 Mon Sep 17 00:00:00 2001 From: Markus Pospischil Date: Tue, 15 Jun 2010 15:05:37 +0000 Subject: [PATCH] - Added an option so all generated PDFs are printed without page scaling by default. --- include/xslfo2pdf/fpdf/fpdf.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/xslfo2pdf/fpdf/fpdf.php b/include/xslfo2pdf/fpdf/fpdf.php index 034ff462e..d2d23b3fb 100644 --- a/include/xslfo2pdf/fpdf/fpdf.php +++ b/include/xslfo2pdf/fpdf/fpdf.php @@ -177,7 +177,9 @@ if(!class_exists('FPDF')) //Enable compression $this->SetCompression(true); //Set default PDF version number - $this->PDFVersion='1.3'; + //$this->PDFVersion='1.3'; + //Changed to 1.6 since the added '/PrintScaling /None' is a 1.6 (Acrobat 7) feature - MP + $this->PDFVersion='1.6'; } function SetMargins($left,$top,$right=-1) @@ -1382,6 +1384,8 @@ if(!class_exists('FPDF')) $this->_out('/PageLayout /OneColumn'); elseif($this->LayoutMode=='two') $this->_out('/PageLayout /TwoColumnLeft'); + // Don't use page scaling when printing by default - MP + $this->_out('/ViewerPreferences<< /PrintScaling /None >>'); } function _putheader()