New Forum | Previous | Next | (P-PDF) Developers
Topic: Transfomation matrix question
Conf: (P-PDF) Developers, Msg: 107842
Date: 3/18/2004 07:44 AM
I am reading the image info from the Image Xobject as well as from the content stream in an attemp to find the image size. Does anyone know why I am getting a transformation matrix that looks like this every now and again....
0 -313.894 1.5 0 207.28 330.7239 cm
Correct me if I am wrong, but aren't the elements of the tranformation matrix...1 = x scale, 2 = skew and rotation, 3 = skew and rotation, 4 = y scale, 5 = x translation, 6 = y translation?
Is the tm showing this way because more than one transformation matrixes have been combined? If so, how can I determine what the actual x and y scale values are, since they can't actually be 0, can they?
Or is the tm showing up this way because the image was possibly rotated or something?
What I am trying to accomplish is to determine the image resolution, by taking the width and height of the actual image, from the Image XObject, and then determining the rastorized width and height from the content stream, and cm. Calculating the image size in inches and then calculating the resolution. But when I get a matrix with elements 1 and 4 eqaul to 0, of course the calculations do not work.
Any help is greatly appreciated!
Thanks in advance,