@@ -61,7 +61,7 @@ public class PDFReportPDFBox extends GXReportPDFCommons{
61
61
private final float DEFAULT_PDFBOX_LEADING = 1.2f ;
62
62
private Set <String > supportedHTMLTags = new HashSet <>();
63
63
private PDPageContentStream currentPageContentStream ;
64
- private final String pagesPlaceHolder = "{{pages}}" ;
64
+ private final static String PAGES_PLACEHOLDER = "{{pages}}" ;
65
65
66
66
static {
67
67
log = org .apache .logging .log4j .LogManager .getLogger (PDFReportPDFBox .class );
@@ -855,7 +855,7 @@ else if (barcodeType != null) {
855
855
}
856
856
857
857
// Handle {{Pages}}
858
- if (sTxt .trim ().equalsIgnoreCase (pagesPlaceHolder )) {
858
+ if (sTxt .trim ().equalsIgnoreCase (PAGES_PLACEHOLDER )) {
859
859
if (!templateCreated ) {
860
860
templateFont = baseFont ;
861
861
templateFontSize = fontSize ;
@@ -864,7 +864,7 @@ else if (barcodeType != null) {
864
864
templateY = this .pageSize .getUpperRightY () - bottomAux - topMargin - bottomMargin ;
865
865
templateCreated = true ;
866
866
}
867
- sTxt = pagesPlaceHolder ;
867
+ sTxt = PAGES_PLACEHOLDER ;
868
868
}
869
869
870
870
float textBlockWidth = rightAux - leftAux ;
@@ -1276,7 +1276,7 @@ private void replaceTemplatePages() throws IOException {
1276
1276
PDFTextStripper stripper = new PDFTextStripper () {
1277
1277
@ Override
1278
1278
protected void writeString (String text , List <TextPosition > textPositions ) throws IOException {
1279
- String placeholder = pagesPlaceHolder ;
1279
+ String placeholder = PAGES_PLACEHOLDER ;
1280
1280
int index = text .indexOf (placeholder );
1281
1281
while (index != -1 && index + placeholder .length () <= textPositions .size ()) {
1282
1282
float minX = Float .MAX_VALUE ;
@@ -1484,4 +1484,4 @@ public void GxEndPage() {
1484
1484
}
1485
1485
}
1486
1486
1487
- }
1487
+ }
0 commit comments