magesh rathnam wrote:
> the image needs to be clipped off the top in 
> case the image exceeds the image area. So I'm not sure how to restrict a 
> image to a particular region.
> 
> I saw something called addImage in PDFContentByte but I'm not sure what 
> each of the coordinates refer to there.

a, b, c, d, e, and f are elements of the transformation matrix
as explained in section 10.4.1 of 'iText in Action' (p313-316).
They can be used to transform (scale, rotate, skew, translate)
objects such as images, but not to clip them.

If you want to clip an image, skip to section 11.3 titled
'Clipping Content' (p341-344) and you'll learn how to produce
PDFs with images that are clipped like this:
http://itext.ugent.be/itext-in-action/examples/chapter11/results/template_clip.pdf
http://itext.ugent.be/itext-in-action/examples/chapter11/results/clipping_path.pdf

There's some examples available somewhere on the net too,
but as many people tell me from experience, you'll lose less
time reading the book ;-)
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to