You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
putCharsWithIndex(chunk.getText(), i, indexMap, sb);
77
76
} else {
78
77
if (chunk.sameLine(lastChunk)) {
79
78
// we only insert a blank space if the trailing character of the previous string wasn't a space, and the leading character of the current string isn't a space
80
79
if (chunk.getLocation().isAtWordBoundary(lastChunk.getLocation()) && !chunk.getText().startsWith(" ") && !chunk.getText().endsWith(" ")) {
81
80
sb.append(' ');
82
81
}
83
-
indexMap.put(sb.length(), i);
84
-
sb.append(chunk.getText());
82
+
putCharsWithIndex(chunk.getText(), i, indexMap, sb);
85
83
} else {
86
-
indexMap.put(sb.length(), i);
87
-
sb.append(chunk.getText());
84
+
putCharsWithIndex(chunk.getText(), i, indexMap, sb);
thrownewIllegalArgumentException("TextRenderInfo argument is not nullable.");
102
-
if (tri.getText().length() != 1)
103
-
thrownewIllegalArgumentException("CharacterRenderInfo objects represent a single character. They should not be made from TextRenderInfo objects containing more than a single character of text.");
Copy file name to clipboardExpand all lines: kernel/src/main/java/com/itextpdf/kernel/pdf/canvas/parser/listener/RegexBasedLocationExtractionStrategy.java
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,9 +110,25 @@ public int compare(IPdfTextLocation l1, IPdfTextLocation l2) {
Copy file name to clipboardExpand all lines: kernel/src/test/java/com/itextpdf/kernel/pdf/canvas/parser/listener/RegexBasedLocationExtractionStrategyTest.java
+112-2Lines changed: 112 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ This file is part of the iText (R) project.
0 commit comments