Need xslt code for print vertical text and date format

Hi Good Morning

I have to print vertical Text on the pdf page using xslt so give the xslt code for printing vertical text on the pdf page.

my other problem is when i print date on pdf page using xslt then it will in a different format like 2012-05-21T00:00:00+05:30 but i have to print 21-05-2012 format so please give me the xslt code for print the date in a correct format.

Thanks in Advance

Regards :
Sandeep


Hi Sandeep,


Thanks for contacting support. I am working over this query and will get back to you soon. We are sorry for this delay.

Hi Sandeep,


Thanks for your patience.

Please find below the XML and XSLT file to display text in vertical alignment and the appropriate steps to display the date in PDF file. For your reference, I have also attached the resultant PDF which I have generated using Aspose.Pdf for .NET 7.7.0.

[XML]<o:p></o:p>

<?xml version="1.0" encoding="utf-8" ?>

<Contents>

<Content>Hello World</Content>

</Contents>

[XSLT]

<?xml version="1.0" encoding="utf-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="text()" />

<xsl:template match="/Contents">

<Pdf xmlns="Aspose.Pdf">

<Section>

<Text ID="Text1" MarginTop="10" Color="Red" RotatingAngle="90">

<Segment>

<xsl:value-of select="Content"/>

</Segment>

</Text>

<Text>

<Segment DateFormat="dd-MM-yy" IsSymbolReplaceable="true">Date is $D </Segment>

</Text>

</Section>

</Pdf>

</xsl:template>

</xsl:stylesheet>