Hi tweeti,

On 23 August 2012 01:35, tweeti <[email protected]> wrote:

> I'm trying to create engineering data and one of the requirement is to
> embed
> a square box, with number inside, or a hexagone with a number inside.  Can
> that be possible with itext?
>

With a bit of mathematics, you can achieve drawing any shape with the help
of PdfContentByte [1], in particular the methods moveTo(float, float) and
lineTo(float, float). Have a look at the examples [2] in order to
understand how these work.

HTH,
alexis


[1] http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfContentByte.html
[2] http://itextpdf.com/examples/iia.php?id=15
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
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