I have problem with extracting text from PDF using PDFTextStripper from PDFBox 2.0.13. To be more specific - lines, which are too close to each other, are merged together. For example:

On the first line, there is text "signfieldbig", the second line contains underscores but PDFTextStripper parsed it as "s_i_g_n_fi_e_ld_b_ig_ _______" (it merged both lines into one). I tried multiple settings (different lineSeparator, tresholds, etc..) but nothing helped. These two lines were merged every time and I cannot simply remove all unnecessary characters from text, because I am looking for position of this placeholder to create signature field.
UPDATE: I just realized what caused this problem - in original file aren't two normal lines separated by line separator but one line with underscores and manually placed text area with text "placeholder" above that. But still, PDF viewer (viewing it as text) or other PDF library (iText 2.x) parse it as two separate lines...