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


PHP PDF::SetDisplayMode方法代码示例

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


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

示例1: run

 function run()
 {
     // change some win codes, and xhtml into html
     $str = array('<br />' => '<br>', '<hr />' => '<hr>', '[r]' => '<red>', '[/r]' => '</red>', '[l]' => '<blue>', '[/l]' => '</blue>', '&#8220;' => '"', '&#8221;' => '"', '&#8222;' => '"', '&#8230;' => '...', '&#8217;' => '\'');
     foreach ($str as $_from => $_to) {
         $this->html = str_replace($_from, $_to, $this->html);
     }
     $pdf = new PDF('P', 'mm', 'A4');
     $pdf->SetDisplayMode('real');
     $pdf->AddPage();
     // html
     $pdf->WriteHTML($this->_convert(stripslashes($this->html)), $this->bi);
     // output
     $pdf->Output();
     // stop processing
     exit;
 }
开发者ID:JozefAB,项目名称:neoacu,代码行数:17,代码来源:fpdf.php

示例2: explode

 $obsinmu = utf8_decode($row['obsinmu']);
 $zonificacion = utf8_decode($row['zonificacion']);
 $deszonrie = utf8_decode($row['deszonrie']);
 $descon = utf8_decode($row['descon']);
 $obscon = utf8_decode($row['obscon']);
 $fotos = explode(",", $row['fotos']);
 //Creación del objeto de la clase heredada
 //$pdf=new PDF();
 //$pdf->AliasNbPages();
 /*	if (!isset($pdf)) {
 			$pdf=new PDF();
 			$pdf->AliasNbPages();
 		}
 	*/
 $pdf->AddPage();
 $pdf->SetDisplayMode('fullpage');
 $pdf->SetMargins(20, 20, 20);
 $pdf->SetFont('Arial', 'BU', 14);
 $pdf->SetTextColor(70, 125, 25);
 $pdf->Cell(0, 10, 'FICHA DE CHECK DOMICILIARIO', 0, 1, 'C');
 $pdf->Ln(2);
 $pdf->SetTextColor(0, 0, 0);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(55, 7, 'NOMBRES Y APELLIDOS', 1, 0, 'L');
 $pdf->SetFont('Arial', '', 12);
 $pdf->Cell(0, 7, $nombre, 1, 1, 'C');
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(55, 7, 'DIRECCION', 1, 0, 'L');
 $pdf->SetFont('Arial', '', 12);
 $pdf->MultiCell(0, 7, $domicilio, 1, 'C');
 //$pdf->Ln(2);
开发者ID:ehuertasf,项目名称:pro_new,代码行数:31,代码来源:rptCheckDomiciliario.php

示例3: Footer

    function Footer()
    {
        $this->SetY(-15);
        $this->SetDrawColor(90, 90, 90);
        $this->Line(15, 278, 195, 278);
        $this->SetFont('Arial', '', 9);
        $this->SetTextColor(150, 150, 150);
        $this->Cell(0, 0, chr(169) . ' ' . appconf('company_name') . ', ' . date('Y') . '  For further information, visit us online at ' . appconf('company_website'), 0, 0, 'R');
        $this->SetTextColor(0);
    }
}
// end PDF
$pdf = new PDF();
$pdf->SetFont('Arial', '', 10);
$pdf->Open();
$pdf->SetDisplayMode(150, 'single');
$pdf->SetLeftMargin(15);
$pdf->SetRightMargin(15);
$pdf->SetFillColor(240, 240, 240);
$pdf->AddPage();
$pdf->Cell(0, 5, ' ', 0, 1, 'C');
$pdf->Ln();
// heading
$pdf->SetFont('Arial', '', 10);
//$pdf->Cell (0, 5, 'Simian Systems Inc.', 0, 1, 'R');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(0, 5, appconf('company_address'), 0, 1, 'R');
$pdf->SetLeftMargin(131.5);
$pdf->WriteHTML('tel: ' . appconf('company_phone') . ', web: <a href="http://' . appconf('company_website') . '/">' . appconf('company_website') . '</a>');
$pdf->SetLeftMargin(15);
$pdf->Ln();
开发者ID:vojtajina,项目名称:sitellite,代码行数:31,代码来源:index.php

示例4: array

while ($row = tep_db_fetch_array($result)) {
    $row['fmargin'] = number_format($row['margin'], 1) . '%';
    $row['weekly'] = array();
    $row['total_sold_L4W'] = 0;
    foreach ($weekly_name as $wkey => $wn) {
        $row['weekly'][$wkey] = getOrderWeekly($row['products_id'], $wkey, $filter_date, $sp_list);
        $row['total_sold_L4W'] += $row['weekly'][$wkey]['total_sold'];
    }
    $products[$row['catid']][$row['products_id']] = $row;
}
$logger->write('Creating PDF File');
$pdf = new PDF('P', 'mm', 'A4');
$pdf->setTitle('Sales Report Weekly Products');
$pdf->SetAuthor('JULIE GRACE');
$pdf->SetCreator('Manobo PDF Generator');
$pdf->SetDisplayMode('real');
$pdf->SetAutoPageBreak(true, 25);
$pdf->AliasNbPages();
$pdf->AddPage('L');
$margin = 30;
$ypos = 10;
$cellstart = $margin;
$cellsize = 48;
$cellsize_half = $cellsize / 2;
$cellsizecollweek = $cellsize + $margin;
$cell_height_col = 55;
$cell_height = 5;
$pdf->setXY($margin, $ypos);
$pdf->setFont('Arial', 'B', '14');
$pdf->cell(240, 5, 'SALES REPORT WEEKLY PRODUCT KW ' . date('W') . ' (' . date('d.m.Y', strtotime($filter_date)) . ')', 0, 0, 'C');
$pdf->setFont('Arial', '', '10');
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:sales-report-weekly-products.php

示例5: PDF

        $content = $row->content;
        $date = $row->datum;
        $author = $row->author;
    }
} else {
    print "Error!";
}
$pdf = new PDF($currentCategory, $thema, $tree->categoryName, $orientation = "P", $unit = "mm", $format = "A4");
$pdf->Open();
$pdf->SetAutoPageBreak(true, 2 * (40 / $pdf->k));
$pdf->SetTitle($thema);
$pdf->SetCreator($PMF_CONF["title"]);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont("Arial", "", 12);
$pdf->SetDisplayMode("real");
$pdf->WriteHTML(str_replace("../", "", $content));
$pdf->Ln();
$pdf->Ln();
$pdf->SetStyle('I', true);
$pdf->Write(5, unhtmlentities($PMF_LANG['ad_entry_solution_id']) . ': #' . $solution_id);
$pdf->SetAuthor($author);
$pdf->Ln();
$pdf->Write(5, unhtmlentities($PMF_LANG["msgAuthor"]) . $author);
$pdf->SetAuthor($author);
$pdf->Ln();
$pdf->Write(5, unhtmlentities($PMF_LANG["msgLastUpdateArticle"]) . makeDate($date));
$pdf->SetStyle('I', false);
$pdfFile = "pdf/" . $id . ".pdf";
$pdf->Output($pdfFile);
$file = basename($pdfFile);
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:pdf.php

示例6: run

 function run()
 {
     // change some win codes, and xhtml into html
     $str = array('<br />' => '<br>', '<hr />' => '<hr>', '[r]' => '<red>', '[/r]' => '</red>', '[l]' => '<blue>', '[/l]' => '</blue>', '&#8220;' => '"', '&#8221;' => '"', '&#8222;' => '"', '&#8230;' => '...', '&#8217;' => '\'');
     foreach ($str as $_from => $_to) {
         $this->html = str_replace($_from, $_to, $this->html);
     }
     $pdf = new PDF('P', 'mm', 'A4', $this->title, $this->articleurl, false);
     $pdf->Open();
     $pdf->SetCompression(true);
     $pdf->SetCreator("Script by Radek HULAN, http://hulan.info/blog/");
     $pdf->SetDisplayMode('real');
     $pdf->SetTitle($this->_convert($this->title));
     $pdf->SetAuthor($this->articleurl);
     $pdf->AddPage();
     // face
     $pdf->PutMainTitle($this->_convert($this->title));
     $pdf->PutMinorHeading('Article URI');
     $pdf->PutMinorTitle($this->articleurl, $this->articleurl);
     $pdf->PutMinorHeading('Author');
     $pdf->PutMinorTitle($this->_convert($this->author));
     $pdf->PutMinorHeading("Published: " . date("F j, Y, g:i a", $this->date));
     $pdf->PutLine();
     $pdf->Ln(10);
     // html
     $pdf->WriteHTML($this->_convert(stripslashes($this->html)), $this->bi);
     //save and redirect
     $filename = $this->directory . $this->_makeFileName($this->title) . '.pdf';
     $http = $this->http . $this->_makeFileName($this->title) . '.pdf';
     $pdf->Output($filename);
     header("Location: {$http}");
     // cleanup
     $files = opendir($this->directory);
     while (false !== ($filename = readdir($files))) {
         if (!(strpos($filename, '.pdf') === false)) {
             // delete old temp files
             $time = filectime($this->directory . $filename);
             if (!($time === false) && $time > 0) {
                 if ($time + $this->delete * 60 < time()) {
                     unlink($this->directory . $filename);
                 }
             }
         }
     }
     // stop processing
     exit;
 }
开发者ID:gimoz71,项目名称:Agenzia-Radar,代码行数:47,代码来源:html2pdf.php

示例7: Footer

    {
        $this->Image('../images/logo_sistecart.jpg', 7, 0.8, 7);
        $this->Ln(2.5);
    }
    function Footer()
    {
        $this->SetY(-2);
        $this->SetFont('Arial', '', 8);
        $this->SetTextColor(22, 32, 108);
        $this->Cell(0, 0.4, Linha1, 0, 1, 'C');
        $this->Cell(0, 0.4, Linha2, 0, 1, 'C');
        $this->Cell(0, 0.4, 'http://www.cartoriopostal.com.br', 0, 1, 'C');
    }
}
$pdf = new PDF('P', 'cm', 'A4');
$pdf->SetDisplayMode(100, 'continuous');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 'cm', 12);
$pdf->Cell(19.2, 0.4, 'Protocolo de Atendimento nº ' . $pedido->id_pedido, '', 1, 'C');
$pdf->Ln(1);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(19.2, 0.4, invert($pedido->data, '/', 'PHP'), '', 1, 'R');
$pdf->Cell(19.2, 0.6, 'Cliente: ' . $pedido->nome, 'LRT', 1);
$pdf->Cell(19.2, 0.6, 'CPF: ' . $pedido->cpf, 'RL', 1);
$pdf->Cell(19.2, 0.6, 'Endereço: ' . $pedido->cidade . '/' . $pedido->estado . ' - ', 'RL', 1);
$pdf->Cell(19.2, 0.6, 'Atendente: ' . $pedido->contato, 'LR', 1);
$pdf->Cell(19.2, 0.6, 'Telefone: ' . $pedido->tel, 'LR', 1);
$pdf->Cell(9.199999999999999, 0.6, 'Origem: ' . $pedido->origem, 'LB', 0);
$pdf->setX(10.2);
$pdf->Cell(10, 0.6, 'Forma Pagamento: ' . $pedido->forma_pagamento, 'RB', 1, 'R');
开发者ID:tricardo,项目名称:CartorioPostal_old,代码行数:31,代码来源:pedido_protocolo.php

示例8: Imprimir_Checks

function Imprimir_Checks($codper, $codsol, $link, $swInit, $pdf)
{
    /*	echo "SELECT a.codchkser,
    			CONCAT(c.apepatper,' ',c.apematper,', ',c.nomper) AS nombre,
    			d.despue AS puesto,
    			a.imgreniec,
    			a.obsimgreniec,
    			a.indrefpol, a.refpolchk,
    			a.indantpol,
    			a.indreqjud,
    			a.indrefter,
    			a.indrefdro,
    			a.indimpsalpai,
    			a.indinvpen,a.invpenchk,
    			e.desdel,
    			a.recchk
    			FROM tb_chkservice AS a
    			LEFT JOIN tb_detallesolicitud AS b ON b.codper=a.codper AND b.codsol=a.codsol
    			LEFT JOIN tb_persona AS c ON c.codper=a.codper
    			LEFT JOIN tb_puesto AS d ON d.codpue=b.codpue
    			LEFT JOIN tb_delito AS e ON e.coddel=a.coddel
    			WHERE a.codper in ($codper) AND a.codsol=$codsol";*/
    /*Check Service*/
    $result = mysql_query("SELECT a.codchkser,\r\n\t\t\tCONCAT(c.apepatper,' ',c.apematper,', ',c.nomper) AS nombre,\r\n\t\t\td.despue AS puesto,\r\n\t\t\ta.imgreniec,\r\n\t\t\ta.obsimgreniec,\r\n\t\t\ta.indrefpol, a.refpolchk,\r\n\t\t\ta.indantpol,\r\n\t\t\ta.indreqjud,\r\n\t\t\ta.indrefter,\r\n\t\t\ta.indrefdro,\r\n\t\t\ta.indimpsalpai,\r\n\t\t\ta.indinvpen,a.invpenchk,\r\n\t\t\ta.recchk\r\n\t\t\tFROM tb_chkservice AS a\r\n\t\t\tLEFT JOIN tb_detallesolicitud AS b ON b.codper=a.codper AND b.codsol=a.codsol\r\n\t\t\tLEFT JOIN tb_persona AS c ON c.codper=a.codper\r\n\t\t\tLEFT JOIN tb_puesto AS d ON d.codpue=b.codpue\r\n\t\t\tWHERE a.codper in ({$codper}) AND a.codsol={$codsol}", $link);
    if (!isset($pdf)) {
        $pdf = new PDF();
        $pdf->AliasNbPages();
    }
    while ($row = mysql_fetch_array($result)) {
        $nombre = utf8_decode($row['nombre']);
        $puesto = utf8_decode($row['puesto']);
        $imgreniec = utf8_decode($row['imgreniec']);
        $obs = utf8_decode($row['obsimgreniec']);
        $indrefpol = utf8_decode($row['indrefpol']);
        $refpolchk = utf8_decode($row['refpolchk']);
        $indantpol = utf8_decode($row['indantpol']);
        $indreqjud = utf8_decode($row['indreqjud']);
        $indrefter = utf8_decode($row['indrefter']);
        $indrefdro = utf8_decode($row['indrefdro']);
        $indimpsalpai = utf8_decode($row['indimpsalpai']);
        $indinvpen = utf8_decode($row['indinvpen']);
        $invpenchk = utf8_decode($row['invpenchk']);
        $delitos = mysql_query("SELECT cd.coddel,d.nomdel,d.desdel FROM tb_delito_chkservice cd\r\n                                                    LEFT JOIN tb_delito d ON cd.coddel=d.coddel\r\n                                                    where cd.codsol=" . $codsol . " and cd.codper=" . $codper);
        $desdel = "";
        while ($fildel = mysql_fetch_array($delitos)) {
            $desdel = $desdel . utf8_decode($fildel['nomdel']) . " : " . utf8_decode($fildel['desdel']) . "\n\n";
        }
        //			$desdel= utf8_decode($row['desdel']);
        $recchk = utf8_decode($row['recchk']);
        $sw1 = 0;
        if ($indrefpol == 0) {
            $TXTindrefpol = 'No Registra';
        } else {
            $TXTindrefpol = 'Si Registra';
            $sw1 = 1;
        }
        if ($indantpol == 0) {
            $TXTindantpol = 'No Registra';
        } else {
            $TXTindantpol = 'Si Registra';
            $sw1 = 1;
        }
        if ($indreqjud == 0) {
            $TXTindreqjud = 'No Registra';
        } else {
            $TXTindreqjud = 'Si Registra';
            $sw1 = 1;
        }
        if ($indrefter == 0) {
            $TXTindrefter = 'No Registra';
        } else {
            $TXTindrefter = 'Si Registra';
            $sw1 = 1;
        }
        if ($indrefdro == 0) {
            $TXTindrefdro = 'No Registra';
        } else {
            $TXTindrefdrol = 'Si Registra';
            $sw1 = 1;
        }
        if ($indimpsalpai == 0) {
            $TXTindimpsalpai = 'No Registra';
        } else {
            $TXTindimpsalpai = 'Si Registra';
            $sw1 = 1;
        }
        $sw2 = 0;
        if ($indinvpen == 0) {
            $TXTindinvpen = 'No Registra';
        } else {
            $TXTindinvpen = 'Si Registra';
            $sw2 = 1;
        }
        //Creación del objeto de la clase heredada
        //	$pdf=new PDF();
        //	$pdf->AliasNbPages();
        $pdf->AddPage();
        $pdf->SetDisplayMode('fullpage');
        $pdf->SetMargins(20, 20, 20);
        $pdf->SetFont('Arial', 'BU', 14);
//.........这里部分代码省略.........
开发者ID:ehuertasf,项目名称:pro_new,代码行数:101,代码来源:rptChecks2.php

示例9: generateReports

/**
 * 
 * @global array $DIAMOND_BRAND_IDS
 * @global string $server
 * @global jng_sp $class_sp
 * @global products_minierp $class_pm
 * @global logger $logger
 * @global string $icon_diamond
 * @global string $icon_gold_585_w
 * @global string $icon_gold_585_g
 * @param string $timestamp
 * @param int $jng_sp_id
 * @return boolean
 */
function generateReports($timestamp, $jng_sp_id)
{
    global $DIAMOND_BRAND_IDS, $server, $class_sp, $class_pm, $logger, $icon_diamond, $icon_gold_585_w, $icon_gold_585_g;
    $log_date = strtotime($timestamp);
    $sp_detail = $jng_sp_id > 0 ? $class_sp->retrieveDetail($jng_sp_id) : array('package_prefix' => 'JG.DE');
    $filter_sold = 1;
    $filter_age = 56;
    $logger->write("GENERATING REPORT {$sp_detail['package_prefix']}");
    /*
     * Query get new products which:
     * 1) age <= 8 weeks (56 days)
     * 2) total sold >= 1
     */
    $q = "SELECT p.products_id, p.products_model, p.products_image, p.products_price, p.material_expenses, p.stars ";
    $q .= " , ptc.categories_id AS catid, cd.categories_name";
    $q .= " , IFNULL(plps.sold_monthly_1, 0) AS sold_monthly_1, IFNULL(plps.sold_monthly_2, 0) AS sold_monthly_2";
    if ($jng_sp_id > 0) {
        $q .= " , ((jc.total_returned / jc.total_sold) * 100) AS returned_rate, jc.active_age";
    } else {
        $q .= " , 'N/A' AS returned_rate, DATEDIFF(NOW(), p.products_date_added) AS active_age";
    }
    $q .= " FROM products p";
    if ($jng_sp_id > 0) {
        $q .= " INNER JOIN jng_sp_catalog jc ON jc.jng_sp_id = {$jng_sp_id} AND jc.products_id = p.products_id";
    } else {
        $q .= " INNER JOIN orders_products op ON op.products_id = p.products_id";
    }
    $q .= " LEFT JOIN products_log_per_sp plps ON plps.products_id = p.products_id AND plps.jng_sp_id = {$jng_sp_id}";
    $q .= " LEFT JOIN products_to_categories ptc ON ptc.products_id = p.products_id";
    $q .= " LEFT JOIN categories_description cd ON cd.categories_id = ptc.categories_id AND cd.language_id = 1";
    $q .= " WHERE";
    if ($jng_sp_id > 0) {
        $q .= " jc.active_age <= {$filter_age}";
        $q .= " AND jc.active_status = 1";
        $q .= " AND total_sold >= {$filter_sold}";
    } else {
        //$q .= " p.products_date_added >= '2013-01-01 00:00:00'";
        $q .= " DATEDIFF(NOW(), p.products_date_added) <= {$filter_age}";
        $q .= " AND p.products_status = 1";
        $q .= " AND op.status NOT IN (10, 12)";
        $q .= " GROUP BY p.products_id";
        $q .= " HAVING SUM(op.products_quantity) >= {$filter_sold}";
    }
    //$q .= " LIMIT 5";
    $dbq = tep_db_query($q);
    $products = array();
    while ($row = tep_db_fetch_array($dbq)) {
        $row['margin'] = $class_pm->calculateMargin($row['products_price'], $row['material_expenses'], 1);
        $products[$row['catid']][$row['products_id']] = $row;
    }
    if (count($products) == 0) {
        $logger->write("NO DATA RETRIEVED");
        return false;
    }
    //Start Creating PDF Reports
    $margin = 20;
    $ypos = 10;
    $col_width = 48;
    $col_height = 77;
    $line_height = 5;
    $cell_text_width = $col_width - 3;
    $no = 0;
    $row = 1;
    $icon_w = 4;
    $icon_h = 4;
    $first_page = true;
    $pdf = new PDF('P', 'mm', 'A4');
    $pdf->setTitle('New Comer Report');
    $pdf->SetAuthor('JULIE GRACE');
    $pdf->SetCreator('Manobo PDF Generator');
    $pdf->SetDisplayMode('real');
    $pdf->SetAutoPageBreak(true, 25);
    $pdf->AliasNbPages();
    $pdf->AddPage('L');
    $pdf->setXY($margin, $ypos);
    $pdf->setFont('Arial', 'B', '14');
    $pdf->cell(240, 5, 'SALES REPORT NEWCOMER PRODUCT ' . $sp_detail['package_prefix'] . ' (' . date('d.m.Y', $log_date) . ')', 0, 0, 'C');
    $pdf->setFont('Arial', '', '10');
    $ypos += 15;
    $pdf->setXY($margin, $ypos);
    $catids = load_config('products-categories-sorting');
    foreach ($catids as $catid) {
        $xpos = $margin;
        if (is_array($products[$catid])) {
            foreach ($products[$catid] as $pid => $p) {
                $obj_product = new product($pid);
//.........这里部分代码省略.........
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:101,代码来源:sales-report-newcomer-product.php

示例10: createPDF

 function createPDF($ignoreStockStatusDepot = false, $output = 'D', $add_to_daily_statistic = false, $print_per_orders = true)
 {
     /*
         OUTPUT : D -> WILL PRODUCE ONE PDF FOR ALL ORDERS WITH ITEMS IN IT
         OUTPUT : F -> WILL PRODUCE MULTI PDF PER ORDER ITEMS
     */
     global $class_jo, $class_o, $class_do;
     $pi_printed_jg = array();
     $pi_printed_sp = array();
     $pi_printed_dp = array();
     if ($output == 'D') {
         //PRODUCE SINGLE PDF FILE
         $pdf = new PDF('P', 'mm', 'A4');
         $pdf->setTitle('Production Instruction');
         $pdf->SetAuthor('JULIE GRACE / Bonofactum');
         $pdf->SetCreator('k-Auto Generated PDF');
         $pdf->SetDisplayMode('real');
         $pdf->SetAutoPageBreak(false);
         $pdf->AliasNbPages();
         $pdf->SetFillColor(191, 191, 191);
     }
     $item_printed = 0;
     $oiid_last_printed = '';
     /* Moved this on function constructPIContent and replace using below $print_per_orders, 
      * so eventhough we use $output='F' we still could create pi which consists of collection of orders */
     //foreach($this->orders as $order) {
     //    $o = $order['detail'];
     //    foreach($order['items'] as $oiid=>$i) {
     //        if($i['status']<8) $this->pi_printed[strtolower($o['type'])][] = $oiid;
     //        //if($i['status']<8) ${'pi_printed_'.strtolower($o['type'])}[] = $oiid;
     //        $this->constructPIContent($pdf, $output, $order, $oiid, $ignoreStockStatusDepot, $print_per_orders);
     //        $item_printed++;
     //        $oiid_last_printed = $oiid;
     //    }
     //}
     if ($print_per_orders) {
         foreach ($this->orders as $order) {
             $this->constructPIContent($pdf, $output, $order, $ignoreStockStatusDepot, true);
             $item_printed++;
         }
     } else {
         $this->constructPIContent($pdf, $output, $this->orders, $ignoreStockStatusDepot, false);
     }
     #PI Print Counter
     if (count($this->pi_printed['sp']) > 0) {
         $class_jo->printCountAdd($this->pi_printed['sp']);
     }
     if (count($this->pi_printed['jg']) > 0) {
         $class_o->printCountAdd($this->pi_printed['jg']);
     }
     if (count($this->pi_printed['dp']) > 0) {
         $class_do->printCountAdd($this->pi_printed['dp']);
     }
     /* D: Download; F: Save File on Server */
     if ($output == 'D') {
         $infix = '';
         //$infix = count($this->orders)>1 ? '' : strtoupper($o['type']).'O'.$o['id'].'-';
         //if($item_printed==1) $infix = strtoupper($o['type']).'-'.$oiid_last_printed.'-';
         if ($item_printed == 1) {
             $infix = array_keys($this->orders);
             $infix = $infix[0] . '-';
         }
         $filename = 'PI-' . $infix . date('YmdHi');
         $pdf->Output($filename . '.pdf', $output);
         //$pdf->Output($filename.'.pdf','D');
     }
     if ($add_to_daily_statistic) {
         $pt = new production_target();
         $timestamp = date('Y-m-d H:i:s');
         if ($this->qty_total_first_printed > 0) {
             $pt->addDataToField($timestamp, 'start', $this->qty_total_first_printed);
         }
     }
 }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:74,代码来源:production_instruction_pdf.php

示例11: Footer

            $this->Cell(0, 0, 'This chapter has a title', 0, 0, 'R');
        } else {
            $this->Cell(160, 0, 'Topic of this chapter', 0, 0, 'L');
            $this->Cell(0, 0, $this->PageNo(), 0, 2, 'R');
        }
        //Line break
        $this->SetY(20);
        $this->SetLineWidth(0.01);
        $this->Line($this->lMargin, 18, 210 - $this->rMargin, 18);
        $this->Ln(15);
    }
    function Footer()
    {
        //Position at 1.5 cm from bottom
        $this->SetLineWidth(0.01);
        $this->Line($this->lMargin, 281.2, 210 - $this->rMargin, 281.2);
        $this->SetY(-10);
        //Page number
        $this->Cell(0, 3, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->SetDoubleSided(20, 10);
$pdf->SetFont('Arial', '', 12);
$pdf->AddPage();
for ($i = 0; $i < 60; $i++) {
    $pdf->MultiCell(0, 10, str_repeat('a lot of text ', 30) . "...\n");
}
$pdf->SetDisplayMode('fullpage', 'single');
$pdf->Output();
开发者ID:rohmad-st,项目名称:fpdf,代码行数:31,代码来源:ex.php

示例12: PDF

     {
         //Position at 1.5 cm from bottom
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
     }
 }
 $pdf = new PDF('L');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("imranzahid+nexexcel@gmail.com");
 $pdf->SetSubject("Inventory Report");
 $pdf->SetTitle("Inventory Report");
 $pdf->SetCreator("Imran Zahid");
 $pdf->SetDisplayMode("fullpage");
 $title = "Inventory Report";
 $data = array();
 $sites = array('' => '');
 $gWhere = "";
 if (isset($_GET['godown']) && count($_GET['godown']) > 0) {
     $gWhere = "AND g_code IN ('" . implode("', '", $_GET['godown']) . "') ";
 }
 $result = $mysqli->query("SELECT g_code, g_name FROM godown WHERE company_ref_id = {$_SESSION['company_id']} {$gWhere} ORDER BY g_name");
 while ($row = $result->fetch_assoc()) {
     $sites["{$row['g_code']}"] = $row['g_name'];
 }
 $data[0] = array();
 $data[0]['Item'] = 'Description of Goods';
 $tdata = array();
 $gtdata = array();
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:inventory.php


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