The results are correct but you also have to apply the page rotation to the rectangle.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wahaj > Sent: Thursday, May 12, 2005 11:30 AM > To: [email protected] > Subject: [iText-questions] How to get rectangle values of an > interactive form field > > Hi All, > > I'm fetching the widget's coordinates in the form of PdfArray > with four > float values of PdfNumber for the attached PDF which is > created using iText. > My fetched values are: > Rectangle (ComboBox 'fmCombos') is: 295.0, 250.0, 275.0, 350.0 > Rectangle (TextField 'fmDickens') is: 295.0, 100.0, 245.0, 200.0 > Rectangle (List 'fmLists') is: 295.0, 400.0, 245.0, 500.0 > > I assume that first value is X1, second is Y1, third is X2 > and fourth is Y2. > If so, when I open the document in Acrobat, my assumption > becomes false. > Because in above for all cases X1 is same. > > I have also compared these values with some PDF utilities and > they also > return these numbers. Is the PDF document not properly > created ? Can anyone > please guide me, how to calculate that what element is X1, > Y1, X2 and Y2? > > Thanks for reading. > > Regards, > Wahaj > > > ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_ids93&alloc_id281&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
