> On 13 May 2015, at 11:10, Maruan Sahyoun <[email protected]> wrote: > > Hi, > > in order to support the AP generation for rotated form fields I need to > rotate and translate PDRectangles. Unfortunately the current transformation > returns a GeneralPath from which the transformed PDRectangle needs to be > created to be set …. > > I'd rather add some methods to Matrix to transform and return PDRectangle > likely wo an awt dependency for these methods. Other option would be to add > that to the interactive.form package. > > WDYT?
It's not meaningful to rotate a PDRectangle, because the end result is no longer a rectangle, remember that a PDRectangle is represented by only two diagonally opposite coordinates. That's why the translate method of Matrix takes a PDRectangle and returns a GeneralPath. If you're wanting to use rotated coordinates then the best approach is to simply define the appropriate matrix and work directly in the rotated coordinate space. > BR > Maruan > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
