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


PHP Pdf::Rect方法代码示例

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


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

示例1: sizeof

    }
}
$ecount = 0;
$result = $dbconn->Execute($query);
$index = 0;
$pdf->Ln();
$total_number1 = _("Total number of vulnerabilities identified on ") . " " . sizeof($hosts) . _(" system(s)");
if ($chinese) {
    $total_number1 = mb_convert_encoding($total_number1, 'Big5', 'HTML-ENTITIES');
    $pdf->SetFont('Big5', '', 12);
} else {
    $total_number1 = mb_convert_encoding($total_number1, 'ISO-8859-1', 'HTML-ENTITIES');
    $pdf->SetFont('Helvetica', 'B', 12);
}
$pdf->Cell(0, 6, $total_number1, 0, 1, 'C');
$pdf->Rect(10, 37, 190, 58);
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
$Eriskcount = 0;
$riskArray = array();
$colorarray = array();
$risk_in_graph = array();
while ($result->fields) {
    $riskcount = $result->fields['count'];
    $risk = $result->fields['risk'];
    $hostctx = $result->fields['ctx'];
    $hostIP = $result->fields['hostIP'];
    if (Session::hostAllowed_by_ip_ctx($dbconn, $hostIP, $hostctx)) {
        //$pdf->MultiCell(70, 6, "".getrisk($risk)." : $riskcount" ,0,0,'C');
        $riskArray[getrisk($risk)] += $riskcount;
        if (!array_key_exists($risk, $risk_in_graph)) {
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:lr_respdf.php

示例2: COUNT

 }
 $query = "SELECT COUNT( risk ) AS count, risk, hostIP, ctx FROM \n                    (SELECT DISTINCT t1.hostIP, HEX(t1.ctx) AS ctx, t1.risk, t1.port, t1.protocol, t1.app, t1.scriptid, t1.msg\n                        FROM vuln_nessus_results t1\n                        WHERE report_id in ({$report_id})\n                        {$query_host} \n                        {$perms_where}\n                        AND t1.falsepositive<>'Y'\n                    ) as t GROUP BY risk";
 $ecount = 0;
 $result = $dbconn->Execute($query);
 $index = 0;
 $pdf->Ln();
 $total_number1 = _("Total number of vulnerabilities identified on ") . " " . sizeof($hosts) . _(" system(s)");
 if ($chinese) {
     $total_number1 = mb_convert_encoding($total_number1, 'Big5', 'HTML-ENTITIES');
     $pdf->SetFont('Big5', '', 12);
 } else {
     $total_number1 = mb_convert_encoding($total_number1, 'ISO-8859-1', 'HTML-ENTITIES');
     $pdf->SetFont('Helvetica', 'B', 12);
 }
 $pdf->Cell(0, 6, $total_number1, 0, 1, 'C');
 $pdf->Rect(10, 44, 190, 52);
 $pdf->Ln();
 $pdf->SetFont('Arial', '', 10);
 $Eriskcount = 0;
 $riskArray = array();
 $colorarray = array();
 $risk_in_graph = array();
 while ($result->fields) {
     $riskcount = $result->fields['count'];
     $risk = $result->fields['risk'];
     $hostIP = $result->fields['hostIP'];
     $ctx = $result->fields['ctx'];
     if (Session::hostAllowed_by_ip_ctx($dbconn, $hostIP, $ctx)) {
         //$pdf->MultiCell(70, 6, "".getrisk($risk)." : $riskcount" ,0,0,'C');
         $riskArray[getrisk($risk)] += $riskcount;
         if (!array_key_exists($risk, $risk_in_graph)) {
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:respdf.php

示例3: pdf


//.........这里部分代码省略.........
        //$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
        // 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);
        }
        ///////////////////////////////////////////////////---------------///////////////////////////////////////////////////
        ///////////////////////////////////////////////////FORMATO ENTREGA///////////////////////////////////////////////////
        ///////////////////////////////////////////////////---------------///////////////////////////////////////////////////
        // establecer el modo de fuente por defecto
        $pdf->setFontSubsetting(true);
        // Establecer el tipo de letra
        $pdf->SetFont('helvetica', '', 10);
        //Normal
        $arriba = 6;
        $izq = 10;
        $der = 10;
        $pdf->AddPage('L', 'LETTER');
        $pdf->SetFont('pdfahelvetica', '', 10);
        //Normal
        //$pdf->SetFont('pdfahelveticai', '', 10); // S
        $pdf->SetTextColor(0, 0, 0);
        $style = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,20,5,10', 'phase' => 10, 'color' => array(255, 0, 0));
        $style2 = array('width' => 0.2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0));
        $style3 = array('width' => 0.2, 'cap' => 'round', 'join' => 'round', 'dash' => '2,10', 'color' => array(0, 0, 0));
        $style4 = array('L' => 0, 'T' => array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => '20,10', 'phase' => 10, 'color' => array(100, 100, 255)), 'R' => array('width' => 0.5, 'cap' => 'round', 'join' => 'miter', 'dash' => 0, 'color' => array(50, 50, 127)), 'B' => array('width' => 0.75, 'cap' => 'square', 'join' => 'miter', 'dash' => '30,10,5,10'));
        $style5 = array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 64, 128));
        $style6 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,10', 'color' => array(0, 128, 0));
        $style7 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 128, 0));
        # Marco
        //$pdf->RoundedRect(5, 15-$arriba, 268, 200, 0, '1010', 'NULL');
        $pdf->RoundedRect(12, 15 - $arriba, 120, 200, 0, '1000', 'NULL');
        $pdf->RoundedRect(23 + 125, 15 - $arriba, 120, 200, 0, '1000', 'NULL');
        # Linea encabezado
        //$pdf->Line(15, 44, 264.4, 44, $style2);
        # Linea media punteada
        $pdf->Line(140, 5 - $arriba, 140, 210 + $arriba, $style3);
        # Logos de Encabezado
        $pdf->Image('resources/img/cdmx.png', 85 - $izq, 20 - $arriba, 50, 13, 'PNG', '', '', true, 100, '', false, false, 0, false, false, false);
        # Textos
        $pdf->Text(60 - $izq, 10 - $arriba, 'Formato para Prepa Sí');
        $pdf->SetFont('pdfahelveticab', '', 9);
        // Negrita
        $pdf->Text(35 - $izq, 40 - $arriba, 'Entrega – Recepción Documentos PREPA SÍ 2015-2016');
        $pdf->SetFont('pdfahelvetica', '', 9);
        // Normal
        $pdf->SetLineStyle(array('width' => 0.2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
        $pdf->RoundedRect(34 - $izq, 39 - $arriba, 87, 6, 3, '0000', 'NULL');
        $pdf->Text(44 - $izq, 51 - $arriba, 'Fecha de registro electrónico: ___________________');
        $pdf->Text(27 - $izq, 62 - $arriba, 'Nombre: ____________________________________________________');
        $pdf->Text(27 - $izq, 72 - $arriba, '1.- Solicitud de');
        $pdf->RoundedRect(126 - $izq, 72 - $arriba, 8, 5, 3, '0000', 'NULL');
        $pdf->Text(27 - $izq, 80 - $arriba, '2.- Comprobante de domicilio, expedido dentro de los 3 meses');
        $pdf->Text(33 - $izq, 84 - $arriba, 'anteriores al mes en el que se realice la entrega de los');
        $pdf->Text(33 - $izq, 88 - $arriba, 'documentos (copia y original para cotejo):.....................................');
        $pdf->RoundedRect(126 - $izq, 88 - $arriba, 8, 5, 3, '0000', 'NULL');
        $pdf->Text(27 - $izq, 96 - $arriba, '3.- Comprobante de Inscripcion (vigente), sellado por tu');
        $pdf->Text(32 - $izq, 100 - $arriba, ' institución educativa (copia y original para cotejo):........................');
        $pdf->RoundedRect(126 - $izq, 100 - $arriba, 8, 5, 3, '0000', 'NULL');
        $pdf->Text(27 - $izq, 108 - $arriba, '4.- Comprobante de calificaciones vigente y sellado');
        $pdf->Text(32 - $izq, 112 - $arriba, '(copia y original para cotejo):...........................................................');
        $pdf->RoundedRect(126 - $izq, 112 - $arriba, 8, 5, 3, '0000', 'NULL');
        $pdf->Text(27 - $izq, 120 - $arriba, '5.- Identificación con fotografia (copia y original para cotejo):..............');
        $pdf->RoundedRect(126 - $izq, 121 - $arriba, 8, 5, 3, '0000', 'NULL');
开发者ID:sistemasfidegar,项目名称:beneficiarios_prepasi,代码行数:67,代码来源:Reimpresion.php


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