From 0ac22b5353fd80c99b77fbd58a0ef0f4b10005c4 Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Fri, 26 Jan 2024 11:10:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20pdfUtils=20?= =?UTF-8?q?=E5=A1=AB=E5=85=85=20stampter=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/teammodel/utils/PdfUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cn/teammodel/utils/PdfUtil.java b/src/main/java/cn/teammodel/utils/PdfUtil.java index 269f130..5f67ba3 100644 --- a/src/main/java/cn/teammodel/utils/PdfUtil.java +++ b/src/main/java/cn/teammodel/utils/PdfUtil.java @@ -37,6 +37,7 @@ public class PdfUtil { for (Map.Entry entry : data.entrySet()) { fields.setField(entry.getKey(), entry.getValue()); } + stamper.setFormFlattening(true); stamper.close(); os.close(); }