pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hesham G." <heshamgne...@gmail.com>
Subject Reading text using TextPosition
Date Tue, 21 Apr 2015 19:33:00 GMT
Hello ,

When reading PDF text using TextPosition, is there a way to know if the current character
is a new line character ?

protected void processTextPosition( TextPosition text )  {
    System.out.println( text.getCharacter() );  // Prints space if this is a new line character
in the PDF file.
}


Best regards ,
Hesham
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message