当前位置: 首页>>代码示例>>PHP>>正文


PHP PDF::SetLeftMargin方法代码示例

本文整理汇总了PHP中PDF::SetLeftMargin方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetLeftMargin方法的具体用法?PHP PDF::SetLeftMargin怎么用?PHP PDF::SetLeftMargin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PDF的用法示例。


在下文中一共展示了PDF::SetLeftMargin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: listadoAction

 public function listadoAction($aditionalFilter = '')
 {
     $pdf = new PDF("P", 'mm', "A4");
     $pdf->SetTopMargin(15);
     $pdf->SetLeftMargin(10);
     $pdf->AliasNbPages();
     $pdf->SetFillColor(210);
     $per = new Permisos();
     $em = new EntityManager($per->getConectionName());
     $query = "select t1.IdPerfil,t1.Permisos,t4.Perfil,t2.Titulo as Opcion,t3.Titulo as SubOpcion\n                from AgtPermisos as t1,menu as t2, submenu as t3, perfiles as t4\n                where t1.IDOpcion=t2.IDOpcion\n                and t1.IDOpcion=t3.IDOpcion\n                and t3.Id=t1.IDSubOpcion\n                and t1.IdPerfil=t4.Id\n                order by t1.IdPerfil,t1.IDOpcion,t1.IDSubOpcion;";
     $em->query($query);
     $rows = $em->fetchResult();
     $em->desConecta();
     unset($per);
     $perant = "";
     $opcant = "";
     foreach ($rows as $row) {
         if ($perant != $row['IDPerfil']) {
             $pdf->AddPage();
             $pdf->Cell(40, 5, $row['Perfil'], 0, 0, "L", 1);
         } else {
             $pdf->Cell(40, 5, "", 0, 0, "L", 0);
         }
         $pdf->SetFillColor(240);
         if ($opcant != $row['Opcion']) {
             $pdf->Cell(30, 5, $row['Opcion'], 0, 0, "L", 1);
         } else {
             $pdf->Cell(30, 5, "", 0, 0, "L", 0);
         }
         $perant = $row['IDPerfil'];
         $opcant = $row['Opcion'];
         $pdf->Cell(40, 5, $row['SubOpcion'], 0, 0, "L", 0);
         $permisos = array('C' => substr($row['Permisos'], 0, 1), 'I' => substr($row['Permisos'], 1, 1), 'B' => substr($row['Permisos'], 2, 1), 'A' => substr($row['Permisos'], 3, 1), 'L' => substr($row['Permisos'], 4, 1), 'E' => substr($row['Permisos'], 5, 1));
         $pdf->Cell(13, 5, $permisos['C'], 0, 0, "C", 0);
         $pdf->Cell(13, 5, $permisos['I'], 0, 0, "C", 1);
         $pdf->Cell(13, 5, $permisos['B'], 0, 0, "C", 0);
         $pdf->Cell(13, 5, $permisos['A'], 0, 0, "C", 1);
         $pdf->Cell(13, 5, $permisos['L'], 0, 0, "C", 0);
         $pdf->Cell(13, 5, $permisos['E'], 0, 1, "C", 1);
         $pdf->SetFillColor(210);
     }
     $archivo = "docs/docs" . $_SESSION['emp'] . "/pdfs/" . md5(date('d-m-Y H:i:s')) . ".pdf";
     $pdf->Output($archivo, 'F');
     $this->values['archivo'] = $archivo;
     return array('template' => '_global/listadoPdf.html.twig', 'values' => $this->values);
 }
开发者ID:albatronic,项目名称:agentescloud,代码行数:46,代码来源:PerfilesController.class.php

示例2: foreach

 $statement->nextRowSet();
 $statement->closeCursor();
 $statement = $db->prepare('SELECT sa_examenes_himno.nota_himno as NOTA FROM sa_examenes_himno WHERE sa_examenes_himno.cod_solicitud = ' . $codsHimno[$i]);
 $statement->execute();
 $tablaNota = $statement->fetchALL(PDO::FETCH_ASSOC);
 foreach ($tablaNota as $filaNota) {
     $calificacion = $filaNota['NOTA'];
     $nota_letras = convertir_a_letras($calificacion);
 }
 $statement->nextRowSet();
 $statement->closeCursor();
 $pdf->AddPage();
 $pdf->Image($maindir . 'assets/img/Encabezado de documentos.jpg', 0.4, 0.05, 20.96, 3.22, 'JPG');
 $pdf->Image($maindir . "assets/img/Pie de documentos.jpg", 0.4, 19.1, 20.88, 13.7, 'JPG');
 $pdf->SetRightMargin(1.0);
 $pdf->SetLeftMargin(1.0);
 $pdf->SetFont('Calibri', 'B', 11);
 $pdf->Cell(0, -0.45, utf8_decode("FACULTAD DE CIENCIAS JURÍDICAS    "), 0, 0, 'R');
 $pdf->Ln(0.2);
 $pdf->SetFont('Arial', '', 10);
 $pdf->Cell(0, 0, utf8_decode("Teléfono: 2232-2290    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Edificio A-2    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Ciudad Universitaria    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Tegucigalpa, Honduras    "), 0, 1, 'R');
 $pdf->ln(3.5);
 $pdf->SetFont('Cambria', 'BI', 16);
 $pdf->Cell(0, 0, utf8_decode("CONSTANCIA DE HIMNO"), 0, 1, 'C');
 $pdf->Ln(2.9);
开发者ID:Joshuabenitez,项目名称:Proyecto-industria,代码行数:31,代码来源:ConstanciaHimno.php

示例3: iconv

         //Número de página
         $this->Cell(0, 10, iconv('utf-8', 'cp1252', 'Página ') . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->Line(15, 260, 200, 260);
     }
     function __construct()
     {
         //Llama al constructor de su clase Padre.
         //Modificar aka segun la forma del papel del reporte
         parent::__construct('P', 'mm', 'A4');
         //parent::__construct('P','mm','Letter');
     }
 }
 //Creación del objeto de la clase heredada
 $pdf = new PDF();
 $pdf->SetTopMargin(5.4);
 $pdf->SetLeftMargin(1.5);
 $pdf->AliasNbPages();
 $pdf->SetFont('Arial', '', 9);
 $pdf->AddPage();
 $pdf->Ln();
 //Construcción de la tabla a mostrar
 $pdf->SetY(90);
 $pdf->SetFont('Arial', 'b', 11);
 $pdf->Text(23, 80, iconv('utf-8', 'cp1252', 'Item'));
 $pdf->Text(35, 80, iconv('utf-8', 'cp1252', 'Productos'));
 $pdf->Text(125, 80, 'Total Ventas');
 $pdf->Text(167, 80, iconv('utf-8', 'cp1252', 'Fecha'));
 $pdf->SetFont('Arial', '', 10);
 $pdf->Line(20, 82, 190, 82);
 $pdf->Line(20, 83, 190, 83);
 $j = 0;
开发者ID:aiyellweb,项目名称:arenera,代码行数:31,代码来源:informe.php

示例4: foreach

draw_frame($certificate->bordercolor, $orientation);
print_watermark($certificate->printwmark, $orientation);
print_seal($certificate->printseal, $orientation, 440, 590, '', '');
print_signature($certificate->printsignature, $orientation, 85, 530, '', '');
// Add text
$pdf->SetTextColor(0, 0, 128);
cert_printtext(48, 170, 'C', 'Helvetica', 'B', 26, utf8_decode(get_string("titleportrait", "certificate")));
$pdf->SetTextColor(0, 0, 0);
cert_printtext(45, 230, 'C', 'Times', 'B', 20, utf8_decode(get_string("introportrait", "certificate")));
cert_printtext(45, 280, 'C', 'Helvetica', '', 30, utf8_decode($studentname));
cert_printtext(45, 330, 'C', 'Helvetica', '', 20, utf8_decode(get_string("statementportrait", "certificate")));
cert_printtext(45, 380, 'C', 'Helvetica', '', 20, utf8_decode($course->fullname));
cert_printtext(45, 420, 'C', 'Helvetica', '', 20, utf8_decode(get_string("ondayportrait", "certificate")));
cert_printtext(45, 460, 'C', 'Helvetica', '', 14, utf8_decode($certificatedate));
cert_printtext(45, 540, 'C', 'Times', '', 10, utf8_decode($grade));
cert_printtext(45, 551, 'C', 'Times', '', 10, utf8_decode($outcome));
cert_printtext(45, 562, 'C', 'Times', '', 10, utf8_decode($credithours));
cert_printtext(45, 720, 'C', 'Times', '', 10, utf8_decode($code));
$i = 0;
if ($certificate->printteacher) {
    $context = get_context_instance(CONTEXT_MODULE, $cm->id);
    if ($teachers = get_users_by_capability($context, 'mod/certificate:printteacher')) {
        foreach ($teachers as $teacher) {
            $i++;
            cert_printtext(85, 590 + $i * 12, 'L', 'Times', '', 12, utf8_decode(fullname($teacher)));
        }
    }
}
cert_printtext(58, 600, '', '', '', '', '');
$pdf->SetLeftMargin(85);
$pdf->WriteHTML($customtext);
开发者ID:nadavkav,项目名称:MoodleTAO,代码行数:31,代码来源:certificate.php

示例5: elseif

                                $count++;
                            }
                        }
                    } elseif ($width + $wordwidth <= $maxwidth) {
                        $width += $wordwidth + $space;
                        $text .= $word . ' ';
                    } else {
                        $width = $wordwidth + $space;
                        $text = rtrim($text) . "\n" . $word . ' ';
                        $count++;
                    }
                }
                $text = rtrim($text) . "\n";
                $count++;
            }
            $text = rtrim($text);
            return $count;
        }
    }
    $pdf = new PDF('L', 'cm', 'A4');
    $pdf->AliasNbPages();
    $pdf->SetLeftMargin(1);
    $pdf->SetRightMargin(1);
    $pdf->AddPage();
    $pdf->Table();
    $filename = "Laporan Proyek " . $ProjectName . ".pdf";
    $pdf->Output($filename, "D");
}
?>
 
开发者ID:ricmawan,项目名称:projects,代码行数:29,代码来源:ExportPDF.php

示例6: array

        $rows[] = $data;
    }
} else {
    $query = $sql->prepare("SELECT * FROM shelftags WHERE id=? order by upc");
    $result = $sql->execute($query, array($id));
    while ($row = $sql->fetch_row($result)) {
        $rows[] = $row;
    }
}
$pdf = new PDF('P', 'mm', 'Letter');
//start new instance of PDF
$pdf->Open();
//open new PDF Document
$pdf->SetTopMargin(40);
//Set top margin of the page
$pdf->SetLeftMargin(4);
//Set left margin of the page
$pdf->SetRightMargin(0);
//Set the right margin of the page
//$pdf->SetAutoPageBreak(False,15);
$pdf->AddPage();
//Add a page
//Set increment counters for rows
$i = 9;
//x location of barcode
$j = 33;
//y locaton of barcode
$l = 28;
//y location of size and price on label
$k = 25;
//x location of date and price on label
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:barcodenew.php

示例7: PDF

            $this->Cell(59, 3, '', 0, 0, 'C');
            $this->Cell(80, 3, 'Cagua Edo. Aragua. Telfs: 0244-3964557 / 0426-5125749', 0, 1, 'C');
            //Linea 5
            $this->Cell(59, 3, '', 0, 0, 'C');
            $this->Cell(80, 3, '0416-0458957 / 0426-5180385 / 0424-3261656', 0, 1, 'C');
            $this->Ln(10);
        }
        parent::Header();
    }
}
if (isset($imp)) {
    $pdf = new PDF('L', 'mm', 'Legal');
} else {
    $pdf = new PDF('P', 'mm', 'Letter');
}
$pdf->SetLeftMargin(6);
$pdf->SetRightMargin(7);
$pdf->Open();
$pdf->AddPage();
//T�tulo del Reporte
$pdf->Ln(3);
$pdf->SetFont('times', 'B', 12);
$pdf->Cell(1, 4, 'Clientes' . $text, 0, 1);
$pdf->Cell(1, 10, "Listado de Morosos Productos con" . $giros . utf8_decode(" o más cuotas vencidas"), 0, 1, 'L');
$pdf->SetFont('Arial', '', 10);
//Connect to database
mysql_select_db($database_tecno, $tecno);
$queryCliente = "SELECT *, COUNT(giro) as giro, CONCAT(nombres,' ', primerApellido) as fullName, CONCAT(telefono,' / ',celular) as telefonos FROM datospersonales, detallescliente, refpersonal, inflaboral WHERE status<>1 AND fechaV <'{$today}' AND datospersonales.id = detallescliente.id  AND datospersonales.id = refpersonal.id AND datospersonales.id=inflaboral.id AND inflaboral.ministerio= '{$tpCli}' AND detallescliente.tipo = 1 GROUP BY detallescliente.idArt HAVING COUNT(giro) >= '{$giros}' ORDER BY datospersonales.nombres ASC";
$cliente = mysql_query($queryCliente, $tecno) or die(mysql_error());
$rowCliente = mysql_fetch_assoc($cliente);
$totalRowsCliente = mysql_num_rows($cliente);
开发者ID:aandino-dev,项目名称:tecnoinversiones,代码行数:31,代码来源:listadoMorososFecha2.php

示例8: el

     $orientacion = $fila['ORIENTACION'];
 }
 $cadenaOrientacion = ", con orientación en " . $orientacion . "";
 $cadenaPlanEstudio = "(" . $planEstudio . ")";
 $fechaPalabras = $_POST["cadena"];
 $statement->nextRowSet();
 $statement->closeCursor();
 $statement = $db->prepare('UPDATE sa_solicitudes SET fecha_exportacion = "' . $fechaExp . '" WHERE codigo = ' . $codsConstancias[$i] . '');
 $statement->execute();
 $statement->nextRowSet();
 $statement->closeCursor();
 $pdf->AddPage();
 $pdf->Image($maindir . 'assets/img/Encabezado constancias.jpg', 20.0, 7, 176, 33.2, 'JPG');
 $pdf->ln(65);
 $pdf->SetFont('Cambria', 'BI', 16);
 $pdf->SetLeftMargin(22);
 $pdf->SetRightMargin(22);
 $pdf->Cell(0, 0, utf8_decode("C O N S T A N C I A"), 0, 1, 'C');
 //Definir la siguente cadena
 //$cadenaOrientacion = "";
 $pdf->Ln(19);
 $pdf->SetFont('Cambria', 'I', 16);
 $pdf->SetLeftMargin(22);
 $pdf->SetRightMargin(22);
 $pdf->newFlowingBlock(170, 10, 0, 'J');
 $pdf->SetFont('Cambria', 'I', 14);
 $pdf->WriteFlowingBlock(utf8_decode('El Suscrito, Secretario de la Facultad de Ciencias Jurídicas de la Universidad Nacional ' . 'Autónoma de Honduras, por medio de la presente HACE CONSTAR: '));
 $pdf->SetFont('Cambria', 'I', 14);
 $pdf->WriteFlowingBlock(utf8_decode('Que el(la) alumno(a)'));
 $pdf->SetFont('Cambria', 'BI', 14);
 $pdf->WriteFlowingBlock(utf8_decode(' ' . $nombreTemporal . ' '));
开发者ID:Joshuabenitez,项目名称:Proyecto-industria,代码行数:31,代码来源:Constancia.php

示例9: attendanceReportMy

 public static function attendanceReportMy($details, $data)
 {
     $pdf = new PDF();
     $pdf->SetLeftMargin(25);
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 16);
     $pdf->Cell(0, 15, 'Attendance Report', 0, 0, "C");
     $pdf->Ln(25);
     $pdf->attenDetailsMy($details);
     $pdf->Ln(10);
     $pdf->makeAttenTableMy($data);
     $pdf->Ln(10);
     $pdf->Output("Results Report.pdf", "I");
 }
开发者ID:RushanGajanayake,项目名称:ACTA_Project,代码行数:14,代码来源:pdf.php

示例10: unset

 unset($descendant_main_person2);
 if ($screen_mode == 'STAR') {
     if ($generateIndex != 0) {
         if (isset($genarray[$arraynr])) {
             $temppar = $genarray[$arraynr]["par"];
         }
         while (isset($genarray[$temppar]["gen"]) and $genarray[$temppar]["gen"] == $generateIndex - 1) {
             $lst_in_array += $genarray[$temppar]["nrc"];
             $temppar++;
         }
     }
     $nrchldingen = 0;
 } else {
     if ($descendant_report == true) {
         if ($screen_mode == 'PDF') {
             $pdf->SetLeftMargin(10);
             $pdf->Cell(0, 2, "", 0, 1);
             $pdf->SetFont('Arial', 'BI', 14);
             $pdf->SetFillColor(200, 220, 255);
             if ($pdf->GetY() > 250) {
                 $pdf->AddPage();
                 $pdf->SetY(20);
             }
             $pdf->Cell(0, 8, pdf_convert(__('generation ')) . $number_roman[$generateIndex + 1], 0, 1, 'C', true);
             $pdf->SetFont('Arial', '', 12);
         } elseif ($screen_mode == 'RTF') {
             $rtf_text = __('generation ') . $number_roman[$generateIndex + 1];
             $sect->writeText($rtf_text, $arial14, $parHead);
         } else {
             echo '<div class="standard_header fonts">' . __('generation ') . $number_roman[$generateIndex + 1] . '</div>';
         }
开发者ID:kalinin-sanja,项目名称:FamilyTree,代码行数:31,代码来源:family.php

示例11:

//If Direct Deposit is your payment option
if ($DD_NAME != "") {
    $pdf->SetY($y_axis_initial + ($row_height * $max + 12));
    $pdf->SetX(20);
    $pdf->SetFont('Arial', 'B', 6);
    $pdf->MultiCell(100, 3, "\n" . $pdf->Image('images/icons/deposit.jpeg', 3, 205, 0, 5, JPG) . "Direct Deposit:-\n" . "- Bank: {$DD_BANK}\n" . "- Name: {$DD_NAME}\n" . "- Branch/BSB: {$DD_BSB}\n" . "- Account: {$DD_ACC}\n" . "{$DD_INS}\n" . "\n", 0, 'L', FALSE);
}
//If PayPal is your payment option
if ($PP_ID != "") {
    $pdf->SetY($y_axis_initial + ($row_height * $max + 35));
    $pdf->SetX(20);
    $pdf->SetFont('Arial', 'B', 6);
    $pdf->MultiCell(100, 3, "\n" . "\n" . "PayPal Credit Card Processing:-", 0, 'L', FALSE);
    $pdf->SetLink($link);
    $pdf->Image('images/paypal/pay_now.gif', 5, 230, 15, 0, '', 'https://www.paypal.com/cmd=_xclick&business=' . $PP_ID . '&item_name=Payment%20for%20invoice%20' . $invoice_id . '&item_number=' . $invoice_id . '&description=Invoice%20for%20' . $invoice_id . '&amount=' . $pamount . '&no_note=Thankyou%20for%20your%20buisness.&currency_code=' . $currency_code . '&lc=' . $country . '&bn=PP-BuyNowBF');
    $pdf->SetLeftMargin(20);
    //$pdf->SetFontSize(14);
    $pdf->WriteHTML($html);
}
if ($PAYMATE_LOGIN != "") {
    $pdf->SetY($y_axis_initial + ($row_height * $max + 45));
    $pdf->SetX(20);
    $pdf->SetFont('Arial', 'B', 6);
    $pdf->MultiCell(100, 3, "\n" . "\n" . "Paymate Processing:-", 0, 'L', FALSE);
    $pdf->SetLink($link);
    $pdf->Image('images/paymate/paymate_cc.gif', 5, 242, 15, 0, '', 'https://www.paymate.com/PayMate/ExpressPayment?mid=' . $PAYMATE_LOGIN . '&amt=' . $paymate_amt . '&ref=Payment%20for%20invoice%20' . $invoice_id . '&currency=' . $currency_code . '&amt_editable=N&pmt_sender_email=' . $cusemail . '&pmt_contact_firstname=' . $cusnamef . '&pmt_contact_surname=' . $cusnamel . '&pmt_contact_phone=' . $cusphone . '&regindi_state=' . $cusstate . '&regindi_address1=' . $cusaddress . '&regindi_sub=' . $cuscity . '&regindi_pcode=' . $cuszip . '');
    $pdf->SetLeftMargin(20);
    //$pdf->SetFontSize(14);
    $pdf->WriteHTML($html2);
}
if ($PP_ID == "" & $CHECK_PAYABLE == "" & $DD_NAME == "" & $PAYMATE_LOGIN == "") {
开发者ID:jewelhuq,项目名称:myitcrm1,代码行数:31,代码来源:print_pdf_tpl.php

示例12: PDF

 //initialize pdf generation
 @($persDb = $db_functions->get_person($family_id));
 // *** Use person class ***
 $pers_cls = new person_cls();
 $pers_cls->construct($persDb);
 $name = $pers_cls->person_name($persDb);
 $title = pdf_convert(__('Ancestor sheet') . __(' of ') . $name["standard_name"]);
 $pdf = new PDF();
 $pdf->SetTitle($title);
 $pdf->SetAuthor('Huub Mons (pdf: Yossi Beck)');
 $pdf->SetTopMargin(4);
 $pdf->SetAutoPageBreak(false);
 //$pdf->SetLineWidth(3);
 //$pdf->AddPage();
 $pdf->AddPage("L");
 $pdf->SetLeftMargin(16);
 $pdf->SetRightMargin(16);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Ln(2);
 $name = $pers_cls->person_name($persDb);
 $pdf->MultiCell(0, 10, __('Ancestor sheet') . __(' of ') . $name["standard_name"], 0, 'C');
 $pdf->Ln(2);
 $pdf->SetFont('Arial', '', 8);
 // Output the cells:
 $posy = $pdf->GetY();
 $posx = $pdf->GetX();
 // for each generation check if there is anyone, otherwise don't display those rows
 $exist = false;
 for ($x = 16; $x < 32; $x++) {
     if ($gedcomnumber[$x] != '') {
         $exist = true;
开发者ID:kalinin-sanja,项目名称:FamilyTree,代码行数:31,代码来源:report_ancestor.php

示例13: count

        $this->NbVal = count($data);
        foreach ($data as $l => $val) {
            $p = sprintf('%.2f', $val / $this->sum * 100) . '%';
            $legend = str_replace(array('%l', '%v', '%p'), array($l, $val, $p), $format);
            $this->legends[] = $legend;
            $this->wLegend = max($this->GetStringWidth($legend), $this->wLegend);
        }
    }
}
//
//
//	Begin Report Generation
//
//
$pdf = new PDF();
$pdf->SetLeftMargin(5);
$pdf->SetRightMargin(5);
include_once "loadfonts.php";
$cab->CabinetID = $_REQUEST['cabinetid'];
$cab->GetCabinet();
$device->Cabinet = $cab->CabinetID;
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFillColor(224, 235, 255);
$fill = 0;
$cabmessage = __("Cabinet Location") . ': ' . $cab->Location;
$pdf->SetFont($config->ParameterArray['PDFfont'], 'B', 10);
$pdf->Cell(0, 5, $cabmessage, 0, 1, 'C', 0);
$pdf->SetFont($config->ParameterArray['PDFfont'], '', 10);
$deviceList = $device->ViewDevicesByCabinet();
$headerTags = array(__("Label"), __("SerialNo"), __("AssetTag"), __("Position"), __("Rack Units"), __("#Ports"), __("#PS"), __("PowerConnection1"), __("PowerConnection2"), __("DeviceType"));
开发者ID:ghasedak,项目名称:openDCIM,代码行数:31,代码来源:cabaudit.php

示例14: PDF

# Begin PDF Output
$w = 63;
$top = 28;
$c1x = 13;
$c2x = $c1x + $w;
$c3x = $c2x + $w;
$c4x = $c3x + $w;
$c1h = 170;
$c2h = $c1h / 2;
$c3h = $c2h / 2;
$c4h = $c3h / 2;
$bottom = $top + $c1h;
$pdf = new PDF('L', 'mm', 'Letter');
$pdf->Open();
$pdf->SetTopMargin(13);
$pdf->SetLeftMargin(13);
$pdf->SetRightMargin(10);
$pdf->SetAutoPageBreak(True, 13);
$pdf->AddPage();
$pdf->SetCreator($_SERVER["PHP_SELF"]);
$pdf->SetAuthor("Keith Morrison, keithm@infused.org");
$pdf->SetTitle(sprintf(gtc("Pedigree for %s"), $o->full_name()));
$pdf->SetSubject(gtc("Genealogy"));
# Person 1
$pdf->SetY($top);
$pdf->SetX($c1x);
$pdf->Cell($w, $c1h, '', 1, 0, 'L');
$pdf->SetY($top + $c1h / 2 - 6);
$pdf->SetX($c1x);
$pdf->SetFont($font, 'B', 10);
$pdf->MultiCell($w, 4, isset($g_node_strings[1][0]) ? $g_node_strings[1][0] : '', 0, 'L');
开发者ID:guzzisto,项目名称:retrospect-gds,代码行数:31,代码来源:pedigree_pdf.php

示例15: Footer

     }
     //Pie de página
     function Footer()
     {
         $this->SetY(-19);
         $this->SetFont('Arial', '', 10);
         $this->MultiCell(0, 5, $this->pie, 0, C);
     }
 }
 $db = new ConnectionHandler("{$ruta_raiz}");
 $db->conn->SetFetchMode(ADODB_FETCH_ASSOC);
 $pdf = new PDF('p', 'mm', 'letter');
 $pdf->pie = $pie;
 $pdf->AddPage();
 $pdf->SetTitle("Departamento Nacional de Planeacion");
 $pdf->SetLeftMargin(25);
 $pdf->SetRightMargin(25);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(50, 5, $numradicado, 0, 1, L);
 $pdf->Cell(105, 5, $lugar . "., " . $fecha, 0, 1, L);
 $pdf->ln(18);
 $pdf->SetFont('Arial', '', 12);
 $pdf->write(5, $asu);
 $pdf->ln(25);
 $pdf->Cell(60, 5, $mensaje, 0, 1, L);
 $pdf->ln(5);
 $pdf->MultiCell(0, 5, $reseptor, 0, L);
 $primerno = substr($numRadicadoPadre, 0, 4);
 $segundono = substr($numRadicadoPadre, 4, 3);
 $ruta = "/" . $primerno . "/" . $segundono . "/docs/" . $numradicado;
 $adjuntos = BODEGAPATH . $ruta;
开发者ID:johnfelipe,项目名称:orfeo,代码行数:31,代码来源:funciones.php


注:本文中的PDF::SetLeftMargin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。