Browse Source

fix:[表单管理]导出

master
15881625488@163.com 2 weeks ago
parent
commit
d55426bc1b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java

+ 2
- 2
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormFillUtil.java View File

@ -442,7 +442,7 @@ public class StudyFormFillUtil {
// 写入"页" // 写入"页"
if(language.equals("zh")){ if(language.equals("zh")){
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, 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(); // 在水印层添加 // PdfContentByte content = writer.getDirectContentUnder(); // 在水印层添加
@ -465,7 +465,7 @@ public class StudyFormFillUtil {
// 添加页眉文字 // 添加页眉文字
if (StringUtils.isNoneBlank(headerText)) { if (StringUtils.isNoneBlank(headerText)) {
float pageTextWidth1 = baseFont.getWidthPoint(headerText, footerFont.getSize()); 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(); PdfContentByte cb2 = writer.getDirectContent();
ColumnText.showTextAligned(cb2, Element.ALIGN_LEFT, ColumnText.showTextAligned(cb2, Element.ALIGN_LEFT,

Loading…
Cancel
Save