I have implemented a fix that takes care of "Transformed Xobject rectangle rendering" on a pdf page.
I stated that I had shrunken 4 pages into one portrait pdf page. This patch takes care of both the portrait drawing AND landscape drawing. To test the landscape rendering, I shrunk two pdf pages onto 1 landscape page.
My patch does NOT cover all rotation possibilities, only 0, 90, 270. (Still uncertain about 270).
While making this patch, I noticed that a lot of work has gone into the transformation of the pdf characters, while none of the transformation code was generalized anywhere. It would be nice if all the transformation code inside the character drawing methods were available outside and reachable from all the other operators. That way, no one would ever have to figure out the "transformation matrix insanity due to the rotation of the page" ever again. :-)
Thanks for all your hard work Ben. This project is awesome. I hope I am helping out a little.
Log in to post a comment.