We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Rotation issue with Underlined text - Aspose PDF

Hello ,

We are using 2007.06.18 AsposePDF dll version in our app.

Unfortunately when the the PDF generated for the "underlined 90 degrees rotated text (say 90 degree rotation) the underline does not rotate along with the text …

Is this a known issue or something which can be fixed ?


Here is the sample code :-

// Create a new instance of the PDF object
_TemplatePDF = new Pdf();
_MainSection = _TemplatePDF.Sections.Add();
Aspose.Pdf.Text text;

_MainSection.PageInfo.PageWidth = 600f;
_MainSection.PageInfo.PageHeight = 600f;


// 0 degree, Placement at 0, 0
text = CreateTextParagraph(“01234567890”, “Arial”, 24, false, false, false, new Aspose.Pdf.Color(0, 0, 0), 0, 0,0, “Red”);
_MainSection.Paragraphs.Add(text);
_TemplatePDF.Save(@“C:\sample_out.pdf”);





// the function

#region CreateTextParagraph(string, string, float, bool, bool, bool, Color, float, float, float)
protected Text CreateTextParagraph(string textValue,
string fontName,
float fontSize,
bool isBold,
bool isItalic,
bool isUnderline,
Aspose.Pdf.Color fontColor,
float rotationAngle,
float top,
float left,
string colorType)
{
Text textParagraph = new Text(textValue);
textParagraph.RotatingAngle = 45;
textParagraph.TextInfo.IsUnderline = true;
textParagraph.TextInfo.Color = new Color(colorType);
textParagraph.IsKeptTogether = true;
textParagraph.TextInfo.Alignment = AlignmentType.Left;
textParagraph.TextInfo.IsFontEmbedded = true;
textParagraph.TextInfo.FontName = fontName;
return textParagraph;
} // CreateTextParagraph(string, string, float, bool, bool, bool, Color, float, float, float)
#endregion



Hello Harshal,

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNET-16132. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.