View Single Post
Old 02-11-2008, 03:46 PM   #61
Bert
Enthusiast
Bert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with othersBert plays well with others
 
Posts: 43
Karma: 2898
Join Date: Jan 2007
Location: Belgium
Device: iRex iLiad, PRS-600
I found & fixed the problem discovered by rai (Thank you rai !).

It where actually two bugs:
  • It seems as if PDF pages are rotated somewhat special: the page is left untouched, while a 'rotated' tag contains the rotation ... I didn't know that, and messed up the calculation of the cropping because of that. I didn't notice this before because I use mostly non-rotated pdf's, created by a pdf printer.
  • I made a second mistake when calculating the crop box: Because iPdf and iText use different coördinate systems, the calculation is a bit complex. For the interested: there's a jpg image in the 1.7.6-src explaining the difference.
Anyway, you can find an updated iLiadScribbleMerger (v1.7.6) in the first post.

Last edited by Bert; 02-13-2008 at 02:04 PM. Reason: typo
Bert is offline   Reply With Quote