示例#1
0
文件: example_023.php 项目: arhe/pwak
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
//initialize document
$pdf->AliasNbPages();
// set font
$pdf->SetFont("times", "BI", 12);
// Start Page Group
$pdf->startPageGroup();
// add a page
$pdf->AddPage();
$pdf->Cell(0, 10, "Start of group 1", 0, 1, 'L');
$pdf->AddPage();
// Start new Page Group
$pdf->startPageGroup();
$pdf->AddPage();
$pdf->Cell(0, 10, "Start of group 2", 0, 1, 'L');
$pdf->AddPage();
$pdf->AddPage();
$pdf->AddPage();
//Close and output PDF document
$pdf->Output("example_023.pdf", "I");
//============================================================+
// END OF FILE
//============================================================+
示例#2
0
        $this->SetFont('helvetica', 'I', 8);
        $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
    }
}
$pdf = new MYPDF('L', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(30, 70, 20);
$pdf->setPrintHeader(false);
$pdf->SetAutoPageBreak(TRUE, 15);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
$image_file = K_PATH_IMAGES . 'luxindo.jpg';
$pdf->Image($image_file, 5, 0, 40, '', 'JPG', '', 'M', false, 300, '', false, false, 0, false, false, false);
$pdf->SetFont('helvetica', 'B', 17);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 13, 'PT. Luxindo Raya', 0, 2, 'L', 0, '', '', 'D', 'B');
$pdf->SetFont('helvetica', 'B', 10);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 0, 'LAPORAN PENJUALAN', 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', '', 9);
$pdf->Cell(0, 0, 'Cabang ' . $dataCabang['kode'] . ' - ' . $dataCabang['nama_cabang'], 0, 1, 'L', 0, '');
$pdf->Line(14, 30, 280, 30);
$pdf->SetFont('helvetica', '', 7);
$pdf->setXY(15, 40);
$pdf->Cell(0, 0, 'Periode ' . $begin . ' - ' . $end, 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', 'B', 7);
$pdf->setXY(15, 45);
$pdf->MultiCell(10, 7, "No", 'TB', 'C', false, 0, '', '', false, 0, false, false, 7, 'M');
$pdf->MultiCell(15, 7, "No SO", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(20, 7, "Tgl SO", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(30, 7, "No Seri", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
示例#3
0
$pdf->SetKeywords("TCPDF, PDF, example, test, guide");
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
//initialize document
$pdf->AliasNbPages();
// add a page
$pdf->AddPage();
// ---------------------------------------------------------
// set font
$pdf->SetFont("times", "BI", 12);
// print a line using Cell()
$pdf->Cell(0, 10, "Example 003", 0, 1, 'C');
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output("example_003.pdf", "I");
//============================================================+
// END OF FILE
//============================================================+
示例#4
0
// set font
$pdf->SetFont('helvetica', '', 9);
# creamos una página en blanco
$pdf->Addpage();
$pdf->SetFont('helvetica', '', 9);
// define barcode style
$style = array('position' => 'R', 'align' => 'C', 'stretch' => 0, 'fitwidth' => 1, 'cellfitalign' => '', 'border' => 1, 'hpadding' => '2', 'vpadding' => '2', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => true, 'font' => 'Helvetica', 'fontsize' => 6, 'stretchtext' => 4);
$styleBC = array('position' => 'R', 'border' => 1, 'padding' => 2, 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'text' => true, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4);
$estilo_tabla = "<style>\r\n    .tablaFicha{\r\n        width: 100%;\r\n        font-size: 10px;        \r\n    }\r\n    .celdaTablaFicha{\r\n        border: 1px solid #CCCCCC;\r\n        vertical-align: middle;\r\n    }\r\n    .fecha{\r\n        text-align: right;\r\n    }\r\n    .encabezado{\r\n        background-color: #EFEFEF;\r\n    }\r\n</style>";
$sTituloReporte = "FICHA DE INGRESO A BANCO DE PROYECTOS";
//--------------------Contenido del reporte >---------------------------------------------------
$pdf->SetFont('times', 'L', 6);
$pdf->write1DBarcode($infoBcoPDF['IdBco'], 'C39', '', '', '', 12, 0.4, $style, 'N');
$pdf->Ln();
$pdf->SetFont('times', '', 9);
$pdf->Cell(0, 0, strtoupper($sTituloReporte), 0, 1, 'C', 0, 1);
$pdf->Ln(2);
$inicio_tabla_nomProyecto = "";
$inicio_tabla_nomProyecto .= "<table class=\"tablaFicha\" cellpadding=\"5\">\r\n    <tr>\r\n        <td colspan=\"6\" class=\"fecha\">FECHA DE REGISTRO:</td>\r\n        <td class=\"celdaTablaFicha\">" . $infoBcoPDF['FecReg'] . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">NOMBRE DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomObr']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">SECTOR:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomSec']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">UNIDAD EJECUTORA:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomUE']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">OBJETIVO DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['Justifi']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\" colspan=\"2\">VIDA &Uacute;TIL DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\">" . utf8_encode($infoBcoPDF['vidaPry']) . " A&Ntilde;OS</td>\r\n        <td class=\"celdaTablaFicha encabezado\" colspan=\"2\">MONTO TOTAL DE INVERSI&Oacute;N:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"2\">\$" . number_format($infoBcoPDF['monto'], 2) . " </td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">COBERTURA:</td>\r\n        <td class=\"celdaTablaFicha\">" . utf8_encode($infoBcoPDF['NomCob']) . "</td>";
if ($infoBcoPDF['IdCob'] === "2") {
    $inicio_tabla_nomProyecto .= "<td class=\"celdaTablaFicha encabezado\">REGIONES:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"4\">";
    $regionesFicha = "";
    for ($i = 0; $i < count($infoBcoPDF['regiones']); $i++) {
        $regionesFicha .= $infoBcoPDF['regiones'][$i]['CveReg'] . " " . utf8_encode($infoBcoPDF['regiones'][$i]['NomReg']) . ", ";
    }
    $regionesFicha = trim($regionesFicha, ", ");
    $inicio_tabla_nomProyecto .= $regionesFicha . "</td> ";
} else {
    if ($infoBcoPDF['IdCob'] === "3") {
        $inicio_tabla_nomProyecto .= "<td class=\"celdaTablaFicha encabezado\">MUNICIPIOS:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"4\">";
        $municipiosFicha = "";
示例#5
0
    {
        $this->SetY(-15);
        $this->SetFont('helvetica', 'I', 8);
        $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
    }
}
$pdf = new MYPDF('P', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(15, 10, 15);
$pdf->setPrintHeader(false);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
foreach (tampilData($stmt) as $grid) {
    $pdf->SetFont('helvetica', 'B', 9);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->Cell(0, 0, 'SLIP KOMISI SALES', 0, 2, 'C', 0, '', '');
    $pdf->SetFont('helvetica', '', 7);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->Cell(0, 0, 'PT. LUXINDO RAYA', 0, 2, 'C', 0, '', '');
    $pdf->SetFont('helvetica', 'B', 7);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->MultiCell(15, 7, "NIS", 0, 'L', false, 0, '', '', false, 0, false, false, 7, 'M');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(100, 7, $grid['nis'], 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(18, 7, "Periode", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(45, 7, $begin . " s.d " . $end, 0, 'L', false, 1, '', '', false, 0, false, false, '', 'M');
    $pdf->setXY(15, $pdf->getY() - 2, true);
    $pdf->MultiCell(15, 7, "Nama", 0, 'L', false, 0, '', '', false, 0, false, false, 7, 'T');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(100, 7, $grid['nama'], 0, 'L', false, 0, '', '', false, 1, false, false, '', 'M');
示例#6
0
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
    require_once dirname(__FILE__) . '/lang/eng.php';
    $pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
for ($i = 0; $i < $anzahlSchueler; $i++) {
    // set font
    $pdf->SetFont('times', '', 14);
    $pdf->setPrintHeader(true);
    // add a page
    $pdf->AddPage('P', 'A4');
    //personenbezogene Kopfdaten
    $pdf->SetXY(20, 42);
    $pdf->Cell(45, 5, ucfirst(utf8_encode($nachname[$i])) . ', ' . ucfirst(utf8_encode($vorname[$i])), 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    //$pdf->Cell(35, 5, ucfirst(utf8_encode($vorname[$i])) , 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 5, $klassenbezeichner . ': ' . $kl, 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    //$pdf->SetY(35);
    //$pdf->Cell(0, 5, 'Schuljahr 2013/14'  , 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    //$pdf->Cell(0, 5, 'Halbjahr' , 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    $ks = array(100, 5, 5, 5);
    //statisch,laenger als je noetig, da alle nach der ersten gleich lang;ks=kopfspalten
    //$pdf->SetXY(20,45);
    $pdf->SetFont('times', '', 9);
    $pdf->Cell($ks[0], 5, '', 0, 0, 'C', 0, '', 0, false, 'M', 'M');
    $pdf->SetXY(122.5, 68);
    //alt 78
    $pdf->StartTransform();
    $pdf->Rotate(90);
    $pdf->Cell(15, 5, 'Schüler', 1, 2, 'C', 0, '', 0, false, 'M', 'M');
示例#7
0
// <tbody>
// <tr>
// <td>Yukarıda ismi geçen kişilerden belirtilen MYK Mesleki Yeterlilik Belgesi sınav ücretlerin tahsil edildiğini, iş bu ücretlerin doğruluğunu ve kayıt altına alındığını taahhüt ederim.</td>
// </tr>
// <tr style="text-align:center">
// <td>../../....</td>
// </tr>
// <tr style="text-align:center">
// <td>İmza</td>
// </tr>
// <tr style="text-align:center">
// <td><strong>'.$this->tesvik['IMZA_UNVAN'].'</strong></td>
// </tr>
// <tr style="text-align:center">
// <td>'.$this->tesvik['IMZA_ISIM'].'</td>
// </tr>
// </tbody>
// </table>';
// $pdf->SetFont('DejaVuSans', '', 12, '', true);
// $pdf->writeHTMLCell(0, 0, '', '', $ImzaTable, 0, 1, 0, true, 'C', true);
$pdf->SetFont('DejaVuSans', '', 12, '', true);
$pdf->Cell(440, 0, '../../....', 0, 1, 'C', 0, '', 0, false);
$pdf->SetTextColor(192, 192, 192);
$pdf->Cell(440, 0, 'İmza', 0, 1, 'C', 0, '', 0, false);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(440, 0, $this->tesvik['IMZA_UNVAN'], 0, 1, 'C', 0, '', 0, false);
$pdf->Cell(440, 0, $this->tesvik['IMZA_ISIM'], 0, 1, 'C', 0, '', 0, false);
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output($this->IstekId . '#Ücret İadesi Talebi.pdf');
exit;
示例#8
0
// set pdf viewer preferences
$pdf->setViewerPreferences(array('Duplex' => 'DuplexFlipLongEdge'));
//Doppelseitiger Druck in einem Befehl
$pdf->SetBooklet(true, 15, 25);
// start of creating the documents
while ($meineSchueler = mysql_fetch_assoc($meineSchueler_tmp)) {
    $schueler_uid = $meineSchueler['usr_id'];
    $schueler_vorname = $meineSchueler['firstname'];
    $schueler_nachname = $meineSchueler['lastname'];
    $pdf->SetFont('times', '', 14);
    $pdf->setPrintHeader(true);
    // add a page
    $pdf->AddPage('P', 'A4');
    //personenbezogene Kopfdaten
    $pdf->SetXY(20, 42);
    $pdf->Cell(45, 5, $schueler_nachname . ', ' . $schueler_vorname, 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 5, $klassenbezeichner . ': ' . $kl, 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    $pdf->Line(20, 47, 195, 47, $style2);
    $pdf->SetFont('helvetica', '', 14);
    $pdf->SetY(52);
    $pdf->SetFont('helvetica', 'B', 14);
    $pdf->MultiCell(0, 2, '', 0, 'L', 0, 1, '', '', true);
    //als verticaler Abstand, mir fiel grad nichts besseres ein
    $pdf->Cell(45, 5, 'Deine Lernziele im ' . $_SESSION['aktueller_term_name'], 0, 1, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->MultiCell(0, 1, '', 0, 'L', 0, 1, '', '', true);
    //als verticaler Abstand, mir fiel grad nichts besseres ein
    //Ausdrucken von Lernziel 1 und 2
    $lz1_tmp = mysql_query("SELECT * FROM lernstand.lernziele WHERE uid = '" . $schueler_uid . "' AND lz_nr = '1' AND term = '" . $_SESSION['aktueller_term_nr'] . "'");
    $lz2_tmp = mysql_query("SELECT * FROM lernstand.lernziele WHERE uid = '" . $schueler_uid . "' AND lz_nr = '2' AND term = '" . $_SESSION['aktueller_term_nr'] . "'");
    $lz1 = '';
    $lz2 = '';
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
$LM = $pdf->getMargins()['left'];
$RM = $pdf->getMargins()['right'];
$W = $pdf->getPageWidth() - $RM - $LM;
// ---------------------------------------------------------
$pdf->SetFont('helvetica', '', 12);
$pdf->AddPage();
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
    $pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
// ---------------------------------------------------------
$pdf->SetY(90);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$pdf->SetY(120);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, $TITLE, 0, 1);
$pdf->SetY(140);
$pdf->SetFont('helvetica', '', 12);
$pdf->writeHTML($HTML, true, false, true, false, '');
示例#10
0
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('times', 'BI', 12);
// add a page
$pdf->AddPage();
// print a line using Cell()
$pdf->Cell(0, 10, 'Example 003', 0, 1, 'C');
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('example_003.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
示例#11
0
	$pdf->WriteHTML('<table align="center" width="100%"><tr><td align="center" valign="middle"><img src="../images/medie/'.$im['foto_g_immobile'].'" /></td></tr></table>',false);
}
else 
{
	$pdf->WriteHTML('<table align="center" width="100%"><tr><td align="center" valign="middle"><img src="../images/medie/imagenotavailable_big.gif" /></td></tr></table>',false);
}
$pdf->SetFont($fontLan,'',10);
//Pagina della descrizione
* 
*/
$pdf->AddPage();
$pdf->setPrintHeader(true);
$pdf->SetFont($fontLan, 'B', 14);
$pdf->SetY(5);
$pdf->SetX(33);
$pdf->Cell(145, 0, $titolo, 0, 2, 'C');
$pdf->SetY(10);
if ($prezzo > 0) {
    $pdf->WriteHTML('<div align="center">&euro; ' . number_format($im['prezzo'], 0, ',', '.') . '</div>', false);
}
if ($im['foto_g_immobile'] != '') {
    $pdf->Image(IMAGESPATH . 'medie/' . $im['foto_g_immobile'], 13, 15, 0, 80, '', '', 'C');
} else {
    $pdf->Image(IMAGESPATH . 'medie/imagenotavailable_big.gif', 5, 17);
}
$pdf->SetY(100);
$pdf->SetX(10);
$pdf->SetFont($fontLan, '', 12);
$pdf->WriteHTML('<table align="center" width="520"><tr><td align="left">' . stripslashes($im['descrizione_' . $lan]) . '</td></tr></table>', false);
if ($im['residence'] == 1) {
    $appartamenti = mysql_query("select * from immobili i, tipi t where i.id_tipi=t.id_tipi and id_residence=" . $im['id_immobili'] . ' order by ordine');
示例#12
0
     $imgpath = "../../gfx/" . get_nopreview_icon($result[$n]['resource_type'], $result[$n]['file_extension'], false, true);
     $preview_extension = explode(".", $imgpath);
     if (count($preview_extension) > 1) {
         $preview_extension = trim(strtolower($preview_extension[count($preview_extension) - 1]));
     }
 }
 if (file_exists($imgpath)) {
     # cells are used for measurement purposes only
     # Two ways to size image, either by height or by width.
     $thumbsize = getimagesize($imgpath);
     if ($thumbsize[0] > $thumbsize[1]) {
         if ($sheetstyle == "thumbnails") {
             $topy = $pdf->GetY();
             $topx = $pdf->GetX();
             if ($config_sheetthumb_include_ref) {
                 $pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $ref, 0, 2, 'L', 0, '', 1);
             }
             for ($ff = 0; $ff < count($config_sheetthumb_fields); $ff++) {
                 $value = "";
                 $value = str_replace("'", "\\'", $result[$n]['field' . $config_sheetthumb_fields[$ff]]);
                 $plugin = "../../plugins/value_filter_" . $csf[$ff]['name'] . ".php";
                 if ($csf[$ff]['value_filter'] != "") {
                     eval($csf[$ff]['value_filter']);
                 } else {
                     if (file_exists($plugin)) {
                         include $plugin;
                     }
                 }
                 $value = TidyList($value);
                 $pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $value, 0, 2, 'L', 0, '', 1);
             }
        $this->Ln(15);
    }
    public function Footer()
    {
        $this->SetY(-15);
        // Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        // Número de página
        $this->Cell(0, 10, 'Pagina ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new MYPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont("Arial", "", 6);
$pdf->Cell(0, 3, utf8_decode("Fecha de Impresión:") . date('Y-m-d  H:m:i'), 0, 1, "R");
$pdf->SetFont("Arial", "", 10);
//parte datos de la persona
$pdf->x1 = 7;
$pdf->y1 = $pdf->GetY();
$pdf->SetWidths(array(40, 60, 40, 60));
$pdf->Row_SinLine(array("Clave de Evaluado:", $row_srcEvaluado["CodigoEvaluado"], utf8_decode("Fecha de Evaluación:"), $row_srcEvalExamenes["FechaEvaluacion"]), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Nombre de Evaluado:", utf8_decode($row_srcEvaluado["Nombre"] . " " . $row_srcEvaluado["Paterno"] . " " . $row_srcEvaluado["Materno"]), "", ""), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Puesto:", utf8_decode($row_srcEvaluado["Puesto"]), "No. de Oficio:", $row_srcEvaluado["cOficio"]), "");
$pdf->Ln(3);
$pdf->SetWidths(array(40, 200));
$pdf->Row_SinLine(array("Dependencia:", utf8_decode($row_srcEvaluado["Dependencia"])), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Subdependencia:", "-"), "");
$pdf->SetFooterMargin(10);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 15);
// set font
$pdf->SetFont('freesans', '', 12, '', true);
// add a page
$pdf->AddPage();
// page styles
$pdf->SetTextColor(0);
$pdf->SetFillColor(245);
$fill = FALSE;
// border
$border = '';
// header
$pdf->SetFont('freesans', '', 8, '', true);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-sport"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-sort"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(35, 3, mb_strtoupper(api_text("module-diary_export-time"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-distance"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(130, 3, mb_strtoupper(api_text("module-diary_export-description"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(0, 3, mb_strtoupper(api_text("module-diary_export-datetraining"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Ln();
//Colora dettagli blu
$pdf->SetTextColor(0, 0, 255);
foreach ($trainings->results as $training) {
    // check selected
    if ($training->id == $_GET['idTraining']) {
        $tr_class = "info";
    } else {
        $tr_class = NULL;
    }
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
$LM = $pdf->getMargins()['left'];
$RM = $pdf->getMargins()['right'];
$W = $pdf->getPageWidth() - $RM - $LM;
// ---------------------------------------------------------
$pdf->SetFont('helvetica', '', 12);
$pdf->AddPage();
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
    $pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
$pdf->SetY(90);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, "Invoice", 0, 1);
// ---------------------------------------------------------
$pdf->SetY(100);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$w2 = 20;
$pdf->SetY(140);
foreach ($INVOICE_ITMS as $i) {
示例#16
0
             $this->SetFont('DejaVu Sans B', 'I', 8);
             //Text color in gray
             $this->SetTextColor(128);
             //Page number
             $this->Cell(0, 10, 'Stranica ' . $this->PageNo(), 0, 0, 'C');
         }
     }
 }
 // Prva stranica
 $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 $pdf->AddFont("DejaVuSans", "", "DejaVuSans.php");
 $pdf->AddFont("DejaVuSans", "", "DejaVuSans-Bold.php");
 $pdf->AddPage();
 $pdf->SetY(100);
 $pdf->SetFont('DejaVuSans', '', 30);
 $pdf->Cell(190, 10, $imezad, 0, 0, 'C');
 $pdf->Ln();
 $pdf->SetFont('DejaVuSans', '', 16);
 $pdf->Cell(190, 10, $imepredmeta, 0, 0, 'C');
 $pdf->SetY(-90);
 $pdf->SetFont('DejaVu Sans', '', 12);
 $pdf->Cell(40, 10, 'Student:');
 $pdf->SetFont('DejaVu Sans B', '', 12);
 $pdf->Cell(24, 10, $ime . ' ' . $prezime, 0, 0, 'C');
 $pdf->Ln();
 if ($labgrupa != "") {
     $pdf->SetFont('DejaVu Sans', '', 12);
     $pdf->Cell(40, 10, 'Grupa:');
     $pdf->SetFont('DejaVu Sans', '', 12);
     $pdf->Cell(19, 10, $labgrupa, 0, 0, 'C');
     $pdf->Ln();
示例#17
0
 $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
 // set image scale factor
 $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
 // set font
 $pdf->SetFont('helvetica', '', 9);
 # creamos una página en blanco
 $pdf->Addpage();
 $pdf->SetFont('helvetica', '', 9);
 // define barcode style
 $style = array('position' => 'R', 'align' => 'C', 'stretch' => 0, 'fitwidth' => 1, 'cellfitalign' => '', 'border' => 1, 'hpadding' => '2', 'vpadding' => '2', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => true, 'font' => 'Helvetica', 'fontsize' => 6, 'stretchtext' => 4);
 $styleBC = array('position' => 'R', 'border' => 1, 'padding' => 2, 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'text' => true, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4);
 $estilo_tabla = "\r\n\t\t<style>\r\n\t\t\ttable.general {\r\n\t\t\t\tcolor: #000;\r\n\t\t\t\tfont-family: times;\r\n\t\t\t\tfont-size: 8pt;\r\n\t\t\t\tborder: 1px solid rgb(200,200,200);\r\n\t\t\t\tbackground-color: #FFF;               \r\n\t\t\t}    \r\n\t\t\ttd {        \r\n\t\t\t\tbackground-color: #FFF;                \r\n\t\t\t}\r\n\t\t\ttd.contenido {\r\n\t\t\t\tborder: 1px solid rgb(200);\r\n\t\t\t}    \r\n\t\t\tth {\r\n\t\t\t\tbackground-color: rgb(230);\r\n\t\t\t\tborder: 1px solid rgb(170);      \r\n\t\t\t}\r\n\t\t\t.divi {\r\n\t\t\t  background-color: #b0e0e6;   \r\n\t\t\t  position: absolute;   \r\n\t\t\tmargin-left: auto;\r\n\t\t\tmargin-right: auto;      \r\n\t\t\t   margin-left: 10px;\r\n\t\t\t}\r\n\t\t  .center{ text-align: center; }\r\n\t\t  .right { text-align: right; }\r\n\t\t  .fila_0 { background-color: #FFF;}\r\n\t\t  .fila_1 { background-color: rgb(240); }\r\n\t\t</style>\r\n\t\t";
 $mi_estilo_tabla = "\r\n\t\t<style>  \r\n                    th.verde {\r\n                        background-color: #7DAB49;     \r\n                    }\r\n                    th.concepto {\r\n                        background-color: #BBBFBC;     \r\n                    }\r\n                    td.concepto {\r\n                        background-color: #BBBFBC; \r\n                    }\r\n                    td.cuadro {\r\n                        background-color: #FFFFFF;\r\n                        border: 1px solid #000000;      \r\n                    }\r\n                    td.renglon {\r\n                        background-color: #E1E0E0;\r\n                    }\r\n\t\t</style>\r\n\t\t";
 //--------------------Contenido del reporte >---------------------------------------------------
 $pdf->SetFont('times', 'L', 6);
 $pdf->Cell(0, 0, 'NÚMERO DE PROYECTO', 0, 1, 'R', 0, 1);
 $pdf->write1DBarcode($idBco, 'C39', '', '', '', 12, 0.4, $style, 'N');
 $pdf->Ln();
 $pdf->SetFont('times', '', 9);
 $pdf->Cell(0, 0, strtoupper($sTituloReporte), 0, 1, 'C', 0, 1);
 $pdf->Ln(2);
 $pdf->SetFont('times', '', 7);
 $pdf->Cell(160, 0, 'Número de dictamen:', 0, 0, 'R', 0, 0);
 $pdf->Cell(0, 0, substr($infoSol['NumDictamen'], 0, 10), 1, 1, 'R', 0, 0);
 $pdf->Ln(1);
 $pdf->SetFont('times', '', 7);
 $pdf->Cell(160, 0, 'Fecha de ecaluación:', 0, 0, 'R', 0, 0);
 $pdf->Cell(0, 0, substr($infoSol['FecReg'], 0, 10), 1, 1, 'R', 0, 0);
 $pdf->Ln(1);
 $inicio_tabla_nomProyecto = "";
 $inicio_tabla_nomProyecto .= "<tr>\r\n                            <th width=\"155\">Nombre de la obra:</th>\r\n                            <td width=\"485\" class=\"contenido\">" . utf8_encode($avData['NomObr']) . "</td>\r\n                        </tr>  \r\n\t\t\t<tr>        \r\n                            <th width=\"155\">Descripción del proyecto:</th>\r\n                            <td width=\"485\" class=\"contenido\">" . utf8_encode($avData['PriCar']) . "</td>\r\n\t\t\t</tr>\r\n                        <tr>       \r\n                            <th width=\"155\">Monto total de inversión:</th>\r\n                            <td width=\"485\" class=\"contenido\">\$" . number_format($avData['Monto'], 2) . "</td>\r\n\t\t\t</tr>\r\n                        <tr>        \r\n                            <th width=\"155\">Sector:</th>\r\n                            <td width=\"485\" class=\"contenido\">" . utf8_encode($avData['NomSec']) . "</td>\r\n\t\t\t</tr>\r\n                        <tr>        \r\n                            <th width=\"155\">Tipo de PPI:</th>\r\n                            <td width=\"485\" class=\"contenido\">" . utf8_encode($rPPI['NomPPI']) . "</td>\r\n\t\t\t</tr>";
示例#18
0
$pdf->setLanguageArray($l);
$pdf->SetFont('times', '', 10, '', true);
$pdf->AddPage();
$spacing = -0.01;
$stretching = 75;
$pdf->setFontStretching($stretching);
$pdf->setFontSpacing($spacing);
$titling = <<<EOD
<strong> <font style="font-size:11">Pharmacy Sys</font> </strong> <br> <strong>Official Receipt</strong><br>
Student Center Ground Floor,<br> P.O. Box Private Bag Kabarak, Kenya <br> Tel: +254 702 937 925 <br> E-mail: pharmacysys@yahoo.com 
<br>-----------------------------------------
EOD;
$header = array('Drug', 'Price.', 'Qtty', 'Cost(Kshs.)');
$ddt = <<<EOD
{$time}   
EOD;
$html = <<<EOD
<br>-----------------------------------------
EOD;
$data = $pdf->LoadData('receipts/docs/' . $recNo . '.txt');
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $titling, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $ddt, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'L', $autopadding = true);
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true);
$pdf->ColoredTable($header, $data);
$pdf->SetY(-10);
$pdf->Cell(0, 0, 'You were served by: ' . strtoupper($user), 0, false, 'L', 0, '', 0, false, 'T', 'M');
$pdf->Output('receipts/printouts/' . $details1['customer_name'] . '-receipt.pdf', 'F');
unlink('receipts/docs/' . $recNo . '.txt');
unset($_SESSION['custId'], $_SESSION['custName'], $_SESSION['age'], $_SESSION['sex'], $_SESSION['postal_address'], $_SESSION['phone']);
header('Location: payment.php');
exit;
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
    require_once dirname(__FILE__) . '/lang/eng.php';
    $pdf->setLanguageArray($l);
}
$pdf->SetFont('times', '', 14);
$pdf->setPrintHeader(true);
// add a page
$pdf->AddPage('P', 'A4');
$pdf->Line(25, 20, 185, 20, $style1);
$lfdnr = 0;
$dist = 0;
$pdf->setY(30);
while ($meineSchueler = mysql_fetch_assoc($meineSchueler_tmp)) {
    $dist = $dist + 7.5;
    $lfdnr++;
    $schueler_vorname = $meineSchueler['firstname'];
    $schueler_nachname = $meineSchueler['lastname'];
    $pdf->setX(25);
    $pdf->Cell(10, 15, $lfdnr . '.  ', 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 15, $schueler_nachname . ', ' . $schueler_vorname, 0, 1, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Line(25, 26 + $dist, 185, 26 + $dist, $style2);
}
$pdf->Output('Klassenliste_' . $_SESSION['myclass'] . '.pdf', 'I');
mysql_close($verbindung);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
$LM = $pdf->getMargins()['left'];
$RM = $pdf->getMargins()['right'];
$W = $pdf->getPageWidth() - $RM - $LM;
// ---------------------------------------------------------
$pdf->SetFont('helvetica', '', 12);
$pdf->AddPage();
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
    $pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
// ---------------------------------------------------------
$pdf->SetY(90);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$pdf->SetY(120);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, "Letter of Attendance", 0, 1);
$pdf->SetY(140);
$pdf->SetFont('helvetica', '', 12);
$pdf->writeHTML($HTML, true, false, true, false, '');
示例#21
0
$pdf->SetAuthor('von-Buelow-Gymnasium');
$pdf->SetTitle('Notenliste');
$pdf->SetSubject('');
$pdf->SetKeywords('');
$pdf->AddPage('P', 'A4');
$lfdnr = 0;
$dist = 0;
$pdf->setY(30);
while ($meineSchueler = mysql_fetch_assoc($meineSchueler_tmp)) {
    $zeilenhoehe = $_GET['zeilenh'];
    $lfdnr++;
    $schueler_vorname = $meineSchueler['firstname'];
    $schueler_nachname = $meineSchueler['lastname'];
    $pdf->setX(25);
    if ($lfdnr % 2 == 0) {
        $pdf->Cell(10, $zeilenhoehe, $lfdnr . '.  ', 'LTRB', 0, 'L', true, '', 0, false, 'C', 'C');
        $pdf->Cell(60, $zeilenhoehe, $schueler_nachname . ', ' . $schueler_vorname, 'LTRB', 0, 'L', true, '', 0, false, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');
        $pdf->Cell(5, $zeilenhoehe, '', 'LTRB', 0, 'L', false, '', 0, true, 'C', 'C');