From d55426bc1bde4eed130a2ef43e3fc851b14536d0 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Tue, 7 Apr 2026 15:04:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E8=A1=A8=E5=8D=95=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java index 6827e4c..c8a0b72 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java @@ -442,7 +442,7 @@ public class StudyFormFillUtil { // 写入"页"字 if(language.equals("zh")){ ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, - new Phrase(" 页", footerFont), startX + pageTextWidth + totalWidth, y, 0); + new Phrase(" 页", footerFont), startX + pageTextWidth + totalWidth-10, y, 0); } // PdfContentByte content = writer.getDirectContentUnder(); // 在水印层添加 @@ -465,7 +465,7 @@ public class StudyFormFillUtil { // 添加页眉文字 if (StringUtils.isNoneBlank(headerText)) { float pageTextWidth1 = baseFont.getWidthPoint(headerText, footerFont.getSize()); - float startX1 = (document.getPageSize().getWidth() - pageTextWidth1) + 5 ; + float startX1 = (document.getPageSize().getWidth() - pageTextWidth1) -10 ; PdfContentByte cb2 = writer.getDirectContent(); ColumnText.showTextAligned(cb2, Element.ALIGN_LEFT,