>> Back to our problem. Looking for answers about the rotation-
>> behaviour of all non-text-elements,
>> I realized that all these elements are drawn different from text- 
>> elements. I created a simple
>> word-doc with two boxes and some text and generated a pdf-doc using  
>> Adobe PDFMaker.
>> If you try to show the pdf with the PDFReader from pdfbox the boxes  
>> are rotated but not the text.
>
>Was this from the trunk version (i.e. store adjusted coordinates) or  
>your patched version (i.e. store non-adjusted coordinates)?
I'm using a patches trunk-version. The textmatrix should do the whole thing.
There is only one conversion left: we still have to move the reference for 0,0
from lower left to upper left.

>> One conclusion seems to be: of course the whole coords-flipping and
>> moving thing in the PDFStreamEngine doesn't rotate the text.
>> We have to find out how the rotation is handled by non-text- 
>> elements. After solving this puzzle, we perhaps know how to proceed.

>Yes.  Your other post that references the text matrix is the missing  
>part of the puzzle that is not currently in PDFBox. The current code  
>assumes that all text is "right to left / horizontal".  The notion of  
>width and height in TextPosition also needs to be reconsidered  
>because those assume some form of direction.  Having starting and  
>ending coordinates may make more sense.

>Because the direction of the text is dependent on the matrix and the  
>page rotation, I'm more inclined to store the adjusted coordinates in  
>TextPosition so that every user of the object does not need to adjust  
>the coordinates themselves.
I agree. The adjustments are only needed for the TextStripper-stuff and 
therefore
it makes much more sense to place them within the TextPosition.

Andreas


----------------------------------------------------------------
- Geschaeftsfuehrung: Chittur Ramakrishnan (Vorsitzender),
Stefan Niehusmann -
- Sitz der Gesellschaft: Dortmund -
- Eingetragen beim Amtsgericht Dortmund -
- Handelsregister-Nr. HR B 21222 -
- USt.-IdNr. DE 2588 96 719 -

Reply via email to