|
|
@ -417,7 +417,7 @@ public class StudyFormFillUtil { |
|
|
float y = document.bottom() - 20; |
|
|
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(); |
|
|
BaseFont baseFont = footerFont.getBaseFont(); |
|
|
|
|
|
|
|
|
// 计算页面文本宽度 |
|
|
// 计算页面文本宽度 |
|
|
@ -440,10 +440,10 @@ public class StudyFormFillUtil { |
|
|
cb.addTemplate(total, startX + pageTextWidth, y); |
|
|
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(); // 在水印层添加 |
|
|
// PdfContentByte content = writer.getDirectContentUnder(); // 在水印层添加 |
|
|
// |
|
|
// |
|
|
|