Menu

Draw a box

2005-11-05
2013-05-01
  • Nobody/Anonymous

    Simple question (i think). How can i draw a box and get it in a specific possition on the pdf? i can do horizontal lines fine, using the image.SetHotizontalLine method, but i cant work out how i can create a box.

    I sure it must be fairly easy and im just missing the point somewhere.

    Thanks
    Luke

     
    • Kazuya Ujihara

      Kazuya Ujihara - 2005-11-06

      See example codes like the following.
      http://www.ujihara.jp/iTextdotNET/examples/Chap1001.cs

       
    • David Thielen

      David Thielen - 2005-11-06

      pdf doesn't really have the concept of a box. You have to draw 4 lines.

      However, if the 4 lines are connected to each other in order and the last one ends where the first one started, then it will join them together and make a box.

       
    • Nobody/Anonymous

      i've managed to draw a box using the supplied example, but how do i set the thinkness of the lines. I have set the grapghic objects linewidth but it dos'nt seam to make any differnce

      Thanks for the responses

       
      • Kazuya Ujihara

        Kazuya Ujihara - 2005-11-12

        Look at 'cb.setLineWidth(10f);' line.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.