当前位置: 首页>>代码示例>>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;未经允许,请勿转载。