當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Cpdf::rectangle方法代碼示例

本文整理匯總了PHP中Cpdf::rectangle方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cpdf::rectangle方法的具體用法?PHP Cpdf::rectangle怎麽用?PHP Cpdf::rectangle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Cpdf的用法示例。


在下文中一共展示了Cpdf::rectangle方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rectangle

 function rectangle($x1, $y1, $w, $h, $color, $width, $style = array(), $blend = "Normal", $opacity = 1.0)
 {
     $this->_set_stroke_color($color);
     $this->_set_line_style($width, "square", "miter", $style);
     $this->_set_line_transparency($blend, $opacity);
     $this->_pdf->rectangle($x1, $this->y($y1) - $h, $w, $h);
 }
開發者ID:SkMamtajuddin,項目名稱:bamboo-invoice,代碼行數:7,代碼來源:cpdf_adapter.cls.php

示例2: rectangle

 function rectangle($x1, $y1, $w, $h, $color, $width, $style = array())
 {
     $this->_set_stroke_color($color);
     $this->_set_line_style($width, "butt", "", $style);
     $this->_pdf->rectangle($x1, $this->y($y1) - $h, $w, $h);
 }
開發者ID:skyosev,項目名稱:OpenCart-Overclocked,代碼行數:6,代碼來源:cpdf_adapter.cls.php

示例3: round

// Set the line color/style
$pdf->setStrokeColor(0, 0, 0);
if (isset($_GET['use_light_lines'])) {
    $pdf->setLineStyle(0.5);
} else {
    $pdf->setLineStyle(1);
}
// Draw the title
$note_title_left_margin = round($note_section_width / 2, 2);
$pdf->addText($note_title_left_margin, $note_section_height, 10, "Notes", 0, 0);
//+----------------------------------------------------------------------+
//| DRAW THE PAGE BOX
//+----------------------------------------------------------------------+
// Calculate page width using margins
$page_width = 580 - $left_margin;
$pdf->rectangle($left_margin, $bottom_margin, $page_width, 752);
// Page box
//+----------------------------------------------------------------------+
//| DRAW THE ACTION ITEMS BOX
//+----------------------------------------------------------------------+
// Calculate the width using margins
$action_width = 230;
// Draw the rectangle
$pdf->rectangle($note_section_width, $bottom_margin, $action_width, 752);
// Action items section box
// Loop through and draw each line
$c = $bottom_margin;
if (isset($_GET['show_actions_lines']) && $_GET['show_actions_lines'] == "on") {
    while ($c < $note_section_height - 10) {
        // Set the line style
        if (isset($_GET['use_light_lines'])) {
開發者ID:Bloodknight,項目名稱:notepad-generator,代碼行數:31,代碼來源:notepaper.php

示例4: Cezpdf

    #$pdf->setPreferences( "CenterWindow",true);
    #$pdf->setPreferences( "NonFullScreenPageMode",True); // UseNone, UseOutlines, UseThumbs
    $unten = 50;
    $links = 20;
    $oben = 820;
    $pdf->addText($links, $oben, 11, 'links oben');
    $pdf->addText($links, $unten, 11, 'links unten');
    $pdf->addText(500, $oben, 11, 'rechts oben');
    $pdf->addText(500, $unten, 11, 'rechts unten');
    $row = $oben;
    for ($i = 1; $i <= 10; $i++) {
        $row = $row - 10;
        $pdf->addText($links, $row, 11, $i . ' drunter');
    }
    $pdf->addJpegFromFile($pathvars["fileroot"] . "/images/net/vdmvd/otto.jpg", 70.86, 420.94, 100);
    $pdf->rectangle($links, $unten, 540, 780);
    /*
    $pdf->newPage();
    $pdf->addText(0,830,'10pt','links oben');
    $pdf->addText(540,830,10,'rechts oben');
    $pdf->addText(0,5,10,'links unten');
    $pdf->addText(540,5,10,'rechts unten');
    */
    $pdf->stream();
} else {
    include_once $pathvars["libraries"] . "xtra.pdf.php";
    include_once $pathvars["libraries"] . "xtra.ezpdf.php";
    $pdf = new Cezpdf();
    $pdf->selectFont('./fonts/Helvetica.afm');
    $pdf->openHere("Fit");
    // Image
開發者ID:BackupTheBerlios,項目名稱:ewebuki-svn,代碼行數:31,代碼來源:listendruck-testing.inc.php


注:本文中的Cpdf::rectangle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。