From: Michal H. <ms...@gm...> - 2010-08-25 07:38:50
|
[CCing Jozef] On Wed, Aug 25, 2010 at 11:03:48AM +0530, Ravikant Dubey wrote: > Hey guys?????? Hi, > > Did you get my problem???.if yes please do help me. > > > > Regards, > > ???Ravikant > > From: Ravikant Dubey [mailto:rav...@se...] > Sent: Friday, August 20, 2010 6:38 PM > To: pdf...@li... > Subject: confusion about coordinates > > > > Hi > > Whenever I am creating xml using this: > > page->convert<SimpleWordEngine, SimpleLineEngine, SimpleColumnEngine> (out) > > > > x coordinates are coming different from what I am getting by calling > getBBox() whereas y coordinates are coming correct. I am bit confused > why x coordinates are coming different. Please do help me. > > > > For ur reference I am giving both values for same object: > > By getBBox(): > > bbox = {xleft=99.000000000000000 yleft=326.66213000000005 xright=171.56416399999992 yright=335.3317100000000} How did you get bbox of a line? I guess that you just used getBBox on a text operator (which doesn't represent a line in general). > By convert to xml > > <line bbox="xleft: 171.564 yleft: 335.332 xright: 244.128 yright: 326.662" > This smells like a bug. I have tried that on few documents and I wasn't able to reproduce it with the current CVS version. I guess this has something to do with rotated page or some page transformation matrix logic which is not applied correctly in the xml transformation. Could you please report a bug with a document for reproduction? Or just post the document here and we can do the reporting for you if you cannot report the bug for what ever reason. > Regards, > > ???Ravikant Thanks -- Michal Hocko |