|
|
|
@ -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, |
|
|
|
|