Tilman, 

Thanks - I missed a subtly in the javadoc (in that it only return 0, 90,180 or 
270), thanks for the clarification. Yes, extracting the angle from the 
TextMatrix was key. 

Thanks for the tip regarding ExtractText.java and rotationMagic - Interesting 
treatment of the page. 

PDFDev

    On Friday, March 20, 2020, 10:06:36 AM GMT, PDF Developer 
<pdf...@yahoo.com.invalid> wrote:  
 
 Hello,
I am experimenting with extracting text from a PDF. Part of the customer 
requirements is to extract text in a certain colour. I adapted the 
PrintTextColour Sample.  Since there is a need to process text that could be at 
0..45..90..135.. etc However the TextPosition.getDir() didn't appear to give me 
the correct angle sometimes - am I missing something? In the end I calculated 
the angle from the TextPosition.getTextMatrix() which is where I understood 
getDir() derived the information.
Can someone enlighten me - is this a mistake on my part or a "hiccup" in PDFBox?
PDFDev  

Reply via email to