Browse Source

fix:[模板管理]优化

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

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

@ -417,7 +417,7 @@ public class StudyFormFillUtil {
float y = document.bottom() - 20;
// 在每一页都重新计算确保位置准确
String pageText =language.equals("zh")? (signText+ " " + currentPage + " / "):(signText+ " page " + currentPage + " / ");
String pageText =language.equals("zh")? (signText+ " " + currentPage + " / "):(signText+ " page " + currentPage + " of ");
BaseFont baseFont = footerFont.getBaseFont();
// 计算页面文本宽度
@ -440,10 +440,10 @@ public class StudyFormFillUtil {
cb.addTemplate(total, startX + pageTextWidth, y);
// 写入"页"
if(language.equals("zh")){
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT,
new Phrase(" 页", footerFont), startX + pageTextWidth + totalWidth-10, y, 0);
}
// if(language.equals("zh")){
// ColumnText.showTextAligned(cb, Element.ALIGN_LEFT,
// new Phrase(" 页", footerFont), startX + pageTextWidth + totalWidth-10, y, 0);
// }
// PdfContentByte content = writer.getDirectContentUnder(); // 在水印层添加
//

Loading…
Cancel
Save