mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 14:32:18 +00:00
- Added an option so all generated PDFs are printed without page scaling by default.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user