Files
Phraseanet/lib/Alchemy/Phrasea/Out/Tool/PhraseaPDF.php
Benoît Burnichon 51023c5533 bump copyright year
2016-01-05 13:38:14 +01:00

48 lines
1008 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Out\Tool;
class PhraseaPDF extends \TCPDF
{
const FONT = 'freesans';
public function Header()
{
}
public function Footer()
{
$this->SetLeftMargin(0);
$mr = $this->SetRightMargin(0);
$this->SetY(-15);
$this->SetFont(self::FONT, 'I', 8);
$this->Cell(0, 10, 'Page ' . $this->PageNo(), 0, 0, 'C');
$this->SetFont(self::FONT, '', 8);
$w = $this->GetStringWidth('Printed by');
$this->SetFont(self::FONT, 'B', 8);
$w += $this->GetStringWidth(' Phraseanet');
$this->SetXY(-$w - $mr - 5, -15);
$this->SetFont(self::FONT, '', 8);
$this->Write(8, 'Printed by');
$this->SetFont(self::FONT, 'B', 8);
$this->Write(8, ' Phraseanet');
}
}