Class CharacterRenderInfo
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.listener.TextChunk
com.itextpdf.kernel.pdf.canvas.parser.listener.CharacterRenderInfo
This class represents a single character and its bounding box
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ITextChunkLocation
(package private) static CharacterRenderInfo.StringConversionInfo
mapString
(List<CharacterRenderInfo> cris) This method converts aList
ofCharacterRenderInfo
.private static void
putCharsWithIndex
(CharSequence seq, int index, Map<Integer, Integer> indexMap, StringBuilder sb) Methods inherited from class com.itextpdf.kernel.pdf.canvas.parser.listener.TextChunk
getLocation, getText, printDiagnostics, sameLine
-
Field Details
-
boundingBox
-
-
Constructor Details
-
CharacterRenderInfo
-
-
Method Details
-
mapString
This method converts aList
ofCharacterRenderInfo
. The returned data structure contains both the plaintext and the mapping of indices (from the list to the string). These indices can differ; if there is sufficient spacing between two CharacterRenderInfo objects, this algorithm will decide to insert space. The inserted space will cause the indices to differ by at least 1. -
putCharsWithIndex
private static void putCharsWithIndex(CharSequence seq, int index, Map<Integer, Integer> indexMap, StringBuilder sb) -
getBoundingBox
-
getLocation
-