Source of file PdfHeader.php

Size: 1,280 Bytes - Last Modified: 2016-05-18T03:08:26+02:00

buildproject/core/module_pdf/system/PdfHeader.php

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
<?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id$                                   *
********************************************************************************************************/

namespace Kajona\Pdf\System;



/**
 * Sample implementation of a footer.
 *
 * @author sidler
 * @package module_pdf
 * @since 3.3.0
 */
class PdfHeader implements PdfHeaderInterface {


    /**
     * Writes the header for a single page.
     * Use the passed $objPdf to access the pdf.
     *
     * @param PdfTcpdf $objPdf
     */
    public function writeHeader($objPdf) {

        $objPdf->SetY(3);

        $objPdf->SetFont('helvetica', '', 8);

        // Title
        $objPdf->MultiCell(0, 0, $objPdf->getTitle(), "B", "C");


        // Line break
        $objPdf->Ln(30);

    }

}