Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-15 Thread Leonard Rosenthol
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

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-15 Thread chris glace
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 ans

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-15 Thread 1T3XT info
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. Wow! You are one very brave man. Please keep us posted on your progress. First things first: download the PDF Reference (it's available for free). Chapter 4 is a good pl

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-15 Thread 1T3XT info
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

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-15 Thread chris glace
Right, is there not a way to obtain the transformation matrix for the image? On Feb 15, 2008, at 2:48 AM, 1T3XT info wrote: > chris glace wrote: >> I'm trying to find the position of an xobject in an existing pdf >> file. >> I'm wondering if there is a way to use stream.get(PdfName. . . >> to re

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread Fabrizio Accatino
Chris, I don't understand exaclty what your code does but... findind the real position of an xobject is very complex. I write "real positon" because a xobject can contain other xobjects and the placement could be translated and rotated (see tranformation matrix). So, AFAIK, understaning where an o

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread 1T3XT info
chris glace wrote: > I'm trying to find the position of an xobject in an existing pdf > file. > I'm wondering if there is a way to use stream.get(PdfName. . . > to return the location of the object. The code I'm using is as follows. I don't understand your code. If you say you're looking for t

[iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread chris glace
I'm trying to find the position of an xobject in an existing pdf file. I'm wondering if there is a way to use stream.get(PdfName. . . to return the location of the object. The code I'm using is as follows. for (int i = 1; i < reader.getXrefSize(); i++) { PdfObject pdfobj