Initial checkin
This commit is contained in:
commit
d75eb444fc
4304 changed files with 369634 additions and 0 deletions
25
thirdparty/tcpdf/mypdf.php
vendored
Normal file
25
thirdparty/tcpdf/mypdf.php
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
require_once('config/lang/eng.php');
|
||||
require_once('tcpdf.php');
|
||||
|
||||
|
||||
// Extend the TCPDF class to create custom Header and Footer
|
||||
class MYPDF extends TCPDF {
|
||||
//Page header
|
||||
public function Header() {
|
||||
// get the current page break margin
|
||||
$bMargin = $this->getBreakMargin();
|
||||
// get current auto-page-break mode
|
||||
$auto_page_break = $this->AutoPageBreak;
|
||||
// disable auto-page-break
|
||||
$this->SetAutoPageBreak(false, 0);
|
||||
// set bacground image
|
||||
$this->Rect(0,0,210,297,'F','',$fill_color = array(18, 18, 15));
|
||||
// restore auto-page-break status
|
||||
$this->SetAutoPageBreak($auto_page_break, $bMargin);
|
||||
// set the starting point for the page content
|
||||
$this->setPageMark();
|
||||
$this->SetTextColorArray(array(255, 255, 255));
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue