@@ -513,7 +513,7 @@ private static List<TextInfo> getTextDataForWords(Element lineOrCaption,
513513 final Rectangle bboxRect = getAlignedBBox (word ,
514514 textPositioning , pageBbox ,
515515 unparsedBBoxes );
516- addToTextData (textData , word .text (), bboxRect , pageBbox );
516+ addToTextData (textData , word .text (), bboxRect );
517517 }
518518 } else {
519519 List <TextInfo > textInfos = new ArrayList <>();
@@ -529,7 +529,7 @@ private static List<TextInfo> getTextDataForWords(Element lineOrCaption,
529529 if (lineItems [0 ].replaceAll (NEW_LINE_OR_SPACE_PATTERN , "" )
530530 .equals (getTextInfosText (textInfos ).replaceAll (SPACE_PATTERN , "" ))) {
531531 lineItems = Arrays .copyOfRange (lineItems , 1 , lineItems .length );
532- addToTextData (textData , mergeTextInfos (textInfos ), pageBbox );
532+ addToTextData (textData , mergeTextInfos (textInfos ));
533533 textInfos .clear ();
534534 }
535535 }
@@ -549,9 +549,9 @@ private static List<TextInfo> getTextDataForLines(Element lineOrCaption,
549549 TextPositioning .BY_LINES , pageBbox ,
550550 unparsedBBoxes );
551551 if (txtLine == null ) {
552- addToTextData (textData , lineOrCaption .text (), bboxRect , pageBbox );
552+ addToTextData (textData , lineOrCaption .text (), bboxRect );
553553 } else {
554- addToTextData (textData , txtLine , bboxRect , pageBbox );
554+ addToTextData (textData , txtLine , bboxRect );
555555 }
556556 return textData ;
557557 }
@@ -561,8 +561,7 @@ private static List<TextInfo> getTextDataForLines(Element lineOrCaption,
561561 */
562562 private static void addToTextData (List <TextInfo > textData ,
563563 String text ,
564- Rectangle bboxRect ,
565- Rectangle pageBbox ) {
564+ Rectangle bboxRect ) {
566565 final TextInfo textInfo = new TextInfo (text , bboxRect );
567566 textData .add (textInfo );
568567 }
@@ -571,11 +570,10 @@ private static void addToTextData(List<TextInfo> textData,
571570 * Add text chunk represented by text info to list of text infos.
572571 */
573572 private static void addToTextData (List <TextInfo > textData ,
574- TextInfo textInfo ,
575- Rectangle pageBbox ) {
573+ TextInfo textInfo ) {
576574 String text = textInfo .getText ();
577575 Rectangle bboxRect = textInfo .getBboxRect ();
578- addToTextData (textData , text , bboxRect , pageBbox );
576+ addToTextData (textData , text , bboxRect );
579577 }
580578
581579 /**
0 commit comments