Hi,
Thanks for using our products.
In order to accomplish your requirement, you may consider adding a Graph object (Line) at the end of every section. Please take a look over the following XML which adds a line between two sections of the PDF document. The resultant PDF document is also in attachment, please take a look.
[XML]
<?xml version="1.0" encoding="utf-8" ?>
<Pdf xmlns="Aspose.Pdf">
<Section>
<Segment>Paragraph in Section 1</Segment>
<Graph Height="100" Width="400">
<Line Position="0 0 400 0" />
</Graph>
</Section>
<Section IsNewPage="false">
<Segment>Paragraph in Section 2</Segment>
</Section>
</Pdf>
[C#]
//Instantiate a Pdf document object
Pdf pdf1 = new Pdf();
// Bind XML document to be transformed into PDF
pdf1.BindXML(@"d:/pdftest/PDFConversiontest.xml",null);
// save the PDF document
pdf1.Save(@"d:/pdftest/HorizontalLine_Between_Sections.pdf");
For more information, please visit Working with Graphs
In case I have not properly understood your requirement or you have any further query, please feel free to contact.
We apologize for your inconvenience.