Hi,
I think it's correct, I remember that there was something about this
years ago.
There's also a comment:
// note: hx and hy are reversed vs.the PDF spec as we use
AffineTransform's definition x and y shear
And if you look at the other constructor:
@param b the Y coordinate shearing element (m10) of the 3x3 matrix
....
public Matrix(float a, float b, float c, float d, float e, float f)
...
single[1] = b;
Tilman
On 31.03.2025 17:10, pdf...@habmalnefrage.de.INVALID wrote:
Hi,
I do have a question concerning the class Matrix and its function getShearY().
When a new object of class Matrix is created from a PDF document the
constructor takes the COSArray of the PDF document and initializes the member
variable float[] single
with
single[1] = ((COSNumber)array.getObject(1)).floatValue();
So single[1] should contain the shear X of the Tm operator.
My issue is that single[1] is accessed by getShearY() [so Y, not X], which
seems to be wrong.
Thanks,
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org