And as noted by others, but let me reiterate...

Since an XObject is a shared object, it can be used on multiple pages  
or even multiple times on the same page.  As such, you will find that  
for each XObject there can/will be MULTIPLE positions and  
transformations.

Perhaps if you gave us some idea of WHY you need this info, we might  
be able to better direct you in your goal?

Leonard


On Feb 15, 2008, at 10:09 AM, chris glace wrote:

> Looks like thats exactly what I have to do. . . well at least I know
> its not as easy as I had planned.
>
> On Feb 15, 2008, at 9:58 AM, 1T3XT info wrote:
>
>> chris glace wrote:
>>> Right, is there not a way to obtain the transformation matrix for  
>>> the
>>> image?
>>
>> I think you didn't understand the answers you've already received.
>> There is no such this as 'the' transformation matrix for the image.
>>
>> Have you read Fabrizio's answer? (Which was by the way very  
>> accurate!)
>> "I don't understand exaclty what your code does but... finding the
>> real
>> position of an xobject is very complex.
>> I write "real position" because a xobject can contain other xobjects
>> and the placement could be translated and rotated (see tranformation
>> matrix)."
>>
>> Please do some more reading on the Graphics state.
>> Then you'll understand that a specific CTM you might find
>> (for instance: the CTM used for adding an image) is RELATIVE!!!
>>
>> Maybe (I'd say: most certainly) that CTM doesn't reflex the
>> "real position" because there's other CTM(s) that influence
>> the placement somewhere higher on in the Graphics State stack.
>>
>> Are you really going to write iText code that parses the PDF
>> syntax of each page, keeping track of the CTM down to the last
>> XObject and then return the coordinates of every element?
>>
>> If so, please note that you'll have to publish that code as
>> Free / Open Source Software because of the MPL/LGPL. And you'd
>> be writing functionality that as far as I know isn't available
>> in any free tool for the moment. If I'm wrong, please correct
>> me and the other subscribers to this list.
>> -- 
>> This answer is provided by 1T3XT BVBA
>>
>> --------------------------------------------------------------------- 
>> -
>> ---
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to