Skip to content

Commit 5a4406c

Browse files
committed
feat(tools\custom-utils-jdk21): PDFUtil 的使用
1 parent 6fbaf35 commit 5a4406c

24 files changed

Lines changed: 4724 additions & 0 deletions

tools/custom-utils-jdk21/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,25 @@ Word 文档工具类,基于 Apache POI 的 XWPFDocument 实现常用 docx 操
311311
</dependencies>
312312
```
313313

314+
315+
316+
## PDFUtil
317+
318+
PDF 通用工具类,基于 OpenPDF 封装 PDF 创建、编辑、读取、加密、表单和常用业务能力
319+
320+
使用方法(Test包):io.github.atengk.pdf
321+
322+
添加依赖
323+
324+
```xml
325+
<properties>
326+
<openpdf.version>3.0.3</openpdf.version>
327+
</properties>
328+
<dependencies>
329+
<dependency>
330+
<groupId>com.github.librepdf</groupId>
331+
<artifactId>openpdf</artifactId>
332+
<version>${openpdf.version}</version>
333+
</dependency>
334+
</dependencies>
335+
```

tools/custom-utils-jdk21/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
<poi.version>5.5.1</poi.version>
6464

65+
<openpdf.version>3.0.3</openpdf.version>
6566
</properties>
6667

6768
<!-- 项目依赖 -->
@@ -168,6 +169,12 @@
168169
<artifactId>poi-ooxml</artifactId>
169170
<version>${poi.version}</version>
170171
</dependency>
172+
173+
<dependency>
174+
<groupId>com.github.librepdf</groupId>
175+
<artifactId>openpdf</artifactId>
176+
<version>${openpdf.version}</version>
177+
</dependency>
171178
</dependencies>
172179

173180
<!-- 依赖版本管理 -->

0 commit comments

Comments
 (0)