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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
See example codes like the following.
http://www.ujihara.jp/iTextdotNET/examples/Chap1001.cs
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.
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
Look at 'cb.setLineWidth(10f);' line.