Jesus Lopez wrote:
> I need to write a small text on the image, how can I do it?

My first reaction is: on what image?
Are you talking about an image in a PDF file?
If not, you're on the wrong mailing list.

Do you know the position of the image in the PDF file?
Do you know where to put the text?
If not, you'll have a hard time achieving what you want
(with any product, this isn't a problem limited to iText).

If you do know the coordinates where you want the text,
then it's easy. Read my previous answer:
you need PdfReader, PdfStamper, PdfContentByte (getDirectContent)
and then methods such as showTextAligned or objects such as
ColumnText depending on how you want the text to be organized
(a single line? multilines?)

br,
Bruno

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to