PHPackages                             mondagroup/pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mondagroup/pdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

mondagroup/pdf
==============

基于tcpdf二次封装，高性能的PDF制造者

v1.0.12(7mo ago)16331PHPPHP ^7.2

Since May 18Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mondagPHP/pdf)[ Packagist](https://packagist.org/packages/mondagroup/pdf)[ RSS](/packages/mondagroup-pdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (0)

pdf
===

[](#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  //单元格内容拉伸偏移量
    ])

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance65

Regular maintenance activity

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Recently: every ~299 days

Total

13

Last Release

215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3649867c09ddb49775d9402bafef3a7af4e6df80c864c8fa6ef3289bb01193be?d=identicon)[mondagroup\_php@163.com](/maintainers/mondagroup_php@163.com)

---

Top Contributors

[![mondagPHP](https://avatars.githubusercontent.com/u/76928594?v=4)](https://github.com/mondagPHP "mondagPHP (11 commits)")[![RLOFLS](https://avatars.githubusercontent.com/u/37924866?v=4)](https://github.com/RLOFLS "RLOFLS (4 commits)")[![vanchan](https://avatars.githubusercontent.com/u/3882229?v=4)](https://github.com/vanchan "vanchan (4 commits)")[![mrchenzifan](https://avatars.githubusercontent.com/u/16876976?v=4)](https://github.com/mrchenzifan "mrchenzifan (1 commits)")

---

Tags

pdfphptcpdf

### Embed Badge

![Health badge](/badges/mondagroup-pdf/health.svg)

```
[![Health](https://phpackages.com/badges/mondagroup-pdf/health.svg)](https://phpackages.com/packages/mondagroup-pdf)
```

###  Alternatives

[spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

1.8k10.6M45](/packages/spipu-html2pdf)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[iio/libmergepdf

Library for merging multiple PDFs

40813.6M13](/packages/iio-libmergepdf)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

54097.2k](/packages/creagia-laravel-sign-pad)[lsnepomuceno/laravel-a1-pdf-sign

Sign PDF files with valid x509 certificates

315101.4k](/packages/lsnepomuceno-laravel-a1-pdf-sign)[imal-h/pdf-box

The most advanced, driver-based PDF manipulation library for PHP v3.0. Supports Ghostscript, Chrome Headless (HTML to PDF), OpenSSL/FPDI (Signing), and PDFtk (Forms).

60403.9k](/packages/imal-h-pdf-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
