IText reading PDF like pdftotext -layout?

The problem with your approach inserting spaces like this final Float dist = chunk.distanceFromEndOf(lastChunk)/3; for(int i = 0; i<Math.round(dist); i++) { sb.append(‘ ‘); } is that it assumes that the current position in the StringBuffer exactly corresponds to the end of lastChunk assuming a character width width of 3 user space units. This needs not … Read more