0
HeaderFooter 개체를 사용하여 iText로 머리글을 만듭니다.
첫 줄에 충분한 공간이 있지만 페이지 번호는 항상 두 번째 줄에 나타나며, 거기에 줄 바꿈을 명시 적으로 두지는 않습니다.iText HeaderFooter - 페이지 번호가 다음 줄에 나타납니다.
iText 1.2에서 iText 2.1.5로 업그레이드 할 때만이 문제가 시작된 것 같지만 iText 소스 코드에서 아무 것도 눈치 채지 못했습니다.
다른 누구도이 문제가 있었거나 해결 방법을 알고 있습니까?
headString += viewReportTitle + "Page: ";
//Setting the second param to true should append a page number at the end of the string
HeaderFooter header = new HeaderFooter(new Paragraph(headString, iTextHeadingFont), true);
header.setAlignment(Element.ALIGN_CENTER);
iTextDoc.setHeader(header);
출력은 다음과 같이 나타납니다 : 관심있는 모든 사람을 위해
Report Title Page:
1