PHPackages                             pitozoo/readpdf - 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. pitozoo/readpdf

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

pitozoo/readpdf
===============

php pdf 类:读取pdf文件 , 支持中文内容写入 , 输出或导出为pdf文件

v0.1.1(5y ago)147MITPHPPHP &gt;=5.3.0

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pitozoo/readpdf)[ Packagist](https://packagist.org/packages/pitozoo/readpdf)[ Docs](https://github.com/pitozoo/readpdf)[ RSS](/packages/pitozoo-readpdf/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

ReadPdf
=======

[](#readpdf)

> 2020-11-13 本项目仅提供给自己使用,代码非自创,谢谢

### branch

[](#branch)

- main 正式打包发布的分支
- develop 带有演示案例的分支

### 特别感谢:

[](#特别感谢)

> 首先，必须要说明，本项目是基于几个开源代码包的整合而成

- FPDF
- FPDI
- cd\_FPDF

```
https://github.com/Setasign/FPDI
https://github.com/Setasign/FPDf
https://github.com/DCgithub21/cd_FPDF

```

### 已实现的功能:

[](#已实现的功能)

1. 读取现有pdf文件
2. 往pdf文件中写入新内容:支持中文内容
3. 输出为 \\ 下载为 \\ 导出为 : pdf文件

### 文件说明

[](#文件说明)

```
+ 用于被读取的pdf文件
test.pdf

+ 案例
test.php

```

### 坑

[](#坑)

- 1. 多余的功能与多余的代码比较多(我暂时只实现读取和导出pdf、写入中文字符,其他的功能并没有去做测试，抱歉)
- 2. 中文字体包 : 文件占磁盘空间比较大 src/font/simhei.ttf src/font/simhei.z src/font/simhei.afm

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/531d9e9d12934d8a78955ca9f6e2260a85ed5191160830ef1e49a4ed3823c1fb?d=identicon)[pitozoo](/maintainers/pitozoo)

---

Top Contributors

[![linxue](https://avatars.githubusercontent.com/u/5653789?v=4)](https://github.com/linxue "linxue (9 commits)")

---

Tags

readpdf

### Embed Badge

![Health badge](/badges/pitozoo-readpdf/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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