>> 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. >I guess I found something. The whole translation, scaling and rotation stuff >is done by using a Matrix. All non-text elements take >care of the shearing values, but not the text element. >PDFStreamEngine.showString() only uses the scaling and the position when >calling PageDrawer.showCharacter(). The only thing we have to do, is to add >the shearing values or the whole Transformation-Matrix to the >parameters for that method. A quick hack works not 100%, but shows that I'm on >the right path. I spend some more time in this problem and I've found a working solution for the text rotation problem. My rotation-example (test-landscape2.pdf attached to PDFBOX-363) works 100% and the rotation.pdf works 100% concerning the rotation, but there are still some other problems with the positioning, some letters overlapped others. This has nothing to do with the rotation-issue, because the overlapping is on both page, portrait and landscape.
Due to my holiday in Berlin, I will provide a patch at the end of the next week CU, Andreas RWE IT GmbH ---------------------------------------------------------------- - 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 -
