#14 Fix for the rectangle rendering on Scaled XObjects

closed-accepted
nobody
None
5
2008-05-15
2006-12-05
Anonymous
No

I have implemented a fix that takes care of "Transformed Xobject rectangle rendering" on a pdf page.

In my bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1608840&group_id=78314&atid=552832

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.

-Jim Lynch
1360 Studios

Discussion

  • Daniel Wilson

    Daniel Wilson - 2008-05-15
    • status: open --> closed-accepted
     
  • Daniel Wilson

    Daniel Wilson - 2008-05-15

    Logged In: YES
    user_id=1737686
    Originator: NO

    Thanks, Jim!

     

Log in to post a comment.