How do I repeat this functionality without the Graphics object?  Any
help would be much appreciated.

 

            private void AddPDFLine(Phrase parentPhrase, int y1, int,
x1, int y2, int x2, string bordercolor, int borderwidth)

            {

                  Graphic graphic = new Graphic();

 

                  //add border

                  if (bordercolor != null)

                        graphic.SetColorStroke(GetColor(bordercolor));

                  if (borderwidth >= 0)

                        graphic.SetLineWidth(borderwidth);

                  

                  //draw line

                  graphic.MoveTo(x1, PageSize.Height - y1);

                  graphic.LineTo(x2, PageSize.Height - y2);

 

                  graphic.Stroke(); 

 

                  //add to phrase

                  parentPhrase.Add(graphic);

            }

 

Thanks in advance.


Bryan Hill
Software Engineer
Enterprise Content Management 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

 

 

 

 

 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to