Hi All,
Hi Prat,
Thanks for contacting support.
In order to accomplish your requirements, please try using the following XML and code snippet. For your reference, I have also attached the PDF file generated with the latest release of Aspose.Pdf for .NET 10.9.0.
C#:
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
pdf.BindXML("c:/pdftest/testfile.XSL", null);
pdf.Save("c:/pdftest/testfile.pdf");
XML:
<Pdf xmlns="Aspose.Pdf">
<Section TextColor="Black">
<Text>
<Segment>paragraph 1</Segment>
</Text>
<Text MarginTop="10">
<Segment>paragraph 2</Segment>
</Text>
<Text MarginTop="10" Color="Red">
<Segment>Some Text......with links to <Segment Color="Blue">www.xxx.org.au/supporterprivacy</Segment> <Segment Color="Blue">support@domain.com</Segment></Segment>
</Text>
<Text MarginTop="10">
<Segment>paragraph 4</Segment>
</Text>
</Section>
</Pdf>