GithubHelp home page GithubHelp logo

pdf's Introduction

pdf

该类继承 tcpdf, 又进一步提供了一些便捷的方法, 不需要html模板 和繁锁的代码计算
字体默认采用ht(黑体),大小10.5

标题

参考 examples/example_h.php

h(string $txt, int $level = 1, string $align = 'L')

段落

参考 examples/example_p.php

p(string $txt, int $indent = 4, float $lineSpace = 0.5, string $align = 'L')

表格

参考 examples/example_table.php

tableIter(float $w = 0, int $columns = 1, array $config = [])

返回的是一个 yied 迭代器 通过 $table->send([...]) 传递每行数据

    $table->send([
        'data' => [...]  //行数据
        'rowLine' => 2,  //行限制 可选
        'spans' => [8],    //行单元格合并 可选
        'align' => 'C',     //文本水平位置 可选 L C R
        'border' => 'LRT',  //定制化显示行边框 可选 LTRB  
        'format' => 'none', //默认值 'ellipsis' 单元格超出行内容 截断还是省略
        'stretchDiff' => 0  //单元格内容拉伸偏移量
    ])

pdf's People

Contributors

mondagphp avatar rlofls avatar vanchan avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

w-jinbo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.