File: /var/www/vhosts/creativefellows.nl/jhtaxatie.creativefellows.nl/classes/Pdf.php
<?php
use setasign\Fpdi\Tcpdf\Fpdi;
class Pdf extends Fpdi
{
/**
* "Remembers" the template id of the imported page
*/
protected $tplId;
/**
* Draw an imported PDF logo on every page
*/
function Header()
{
if ($this->page == 1) {
$this->setXY(204,285);
$this->StartTransform();
$this->rotate(90);
$this->SetFont($this->font_light,"",6);
$this->writeHTMLCell(20, null, null, null, sprintf('%05d', $this->request_id) );
$this->StopTransform();
}
//$this->addRequestId(426);
/* if ($this->tplId === null) {
$this->setSourceFile('logo.pdf');
$this->tplId = $this->importPage(1);
}
$size = $this->useImportedPage($this->tplId, 130, 5, 60);
$this->SetFont('freesans', 'B', 20);
$this->SetTextColor(0);
$this->SetXY(PDF_MARGIN_LEFT, 5);
$this->Cell(0, $size['height'], 'TCPDF and FPDI');*/
}
function Footer(){}
}