Darren,

FDnC Red wrote
> I guess another way of saying what you said is that the points returned
> from the content stream are Cartesian points.  I keep forgetting PDF puts
> 0,0 in the BL instead of TL.

PDF does not automatically put the origin (0,0) in the bottom left, it may
be anywhere, even way off-screen, given appropriate crop box or media box
settings. It merely is quite common for PDF producers to put the origin
there.

PDF does enforce that y coordinates increase bottom to top (at least in the
default user space, i.e. before transformations); this makes having the 0 y
coordinate at the bottom a fairly natural choice.

> So in order to calculate all four points for the rectangle I should be
> able to do something like this, right?
> 
> [...] Then do the matrix math on the TL points then the BR points.

Yes, but because widths and lengths may be negative I would not call a point
'upper left' or 'lower right' without doing some normalization before to
enforc the names to be appropriate.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/CTM-re-tp4660398p4660407.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to