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

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

linxue/readpdf
==============

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

v1.0.0(5y ago)04MITPHPPHP &gt;=7.0.0

Since Apr 19Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

ReadPdf
=======

[](#readpdf)

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

### 特别感谢:

[](#特别感谢)

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

- 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

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1893d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7620235?v=4)[snowlink](/maintainers/snowlink)[@snowlink](https://github.com/snowlink)

---

Top Contributors

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

---

Tags

readpdfwritepdfreadpdf

### Embed Badge

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

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

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[ikkez/f3-sheet

Some Excel and CSV utilities for PHP Fat-Free Framework

1414.8k](/packages/ikkez-f3-sheet)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.7k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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