Drawing horizontal line on the same page



I am printing some text after I want to draw horizontal line, but line start in a new page.

<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

How will I draw the line bottom of there text?

Here is the code I am using.

'Add Text

t3 = New Aspose.Pdf.Text(sec1, “Revised November 2004”)

t3.TextInfo = tf1


sec1.Paragraphs.Add(New Text(" ")) ’ Empty line


Dim graph1 As Graph = New Graph(sec1, 200, 400)


Dim posArr As Single() = New Single() {10, 0, 300, 0}

Dim l1 As Line = New Line(graph1, posArr)

l1.GraphInfo.Color = New Aspose.Pdf.Color(“Red”)

l1.GraphInfo.LineCapMode = 0





Thank you for considering Aspose.

The line start in a new page must because your graph height is too large. If you want the line at the bottom of the text, you should set the graph height to a smaller value, for example, 10.