Clicky

Hi there,
I have been producing my own pdf documents using VB.NET and iTextSharp.  So far it has all been going ok but I can't seem to be able to draw an arc.  No matter what I try it always seems to end up being a straight line.

Can someone please help me.

I have tried many different combinations of values.  The line that is generated moves but is still a straight line.

I'm trying to draw half of an ellipse.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Dim FileStream as new IO.FileStream("C:	est.pdf", IO.FileMode.Create)
Dim doc As new Document
Dim writer As iTextSharp.text.pdf.PdfWriter = pdf.PdfWriter.GetInstance(doc, FileStream)
Dim cb As PdfContentByte = writer.DirectContent

doc.SetPageSize(PageSize.A4)

cb.Arc(100, 100, 100, 200, 135, 180)
cb.Stroke()

FileStream.Close()
FileStream.Dispose()

asked 09/09/2010 12:27

SoLost's gravatar image

SoLost ♦♦


1 Answers:
Don't worry.  After all that I found the "CurveTo" method that does what I want.
link
SoLost's gravatar image

SoLost

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×4
×88
×158
×66
×74

Asked: 09/09/2010 12:27

Seen: 754 times

Last updated: 09/08/2010 05:36