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.