I have two questions regarding LineSpacing property.
Q1. Why doesn't it work when I set it on the Segment level? It only works when I set it at the Text level.
Sample code:
Dim s As Segment = New Segment(sText) s.TextInfo.LineSpacing = 20 ' This line causes no effect s.TextInfo.FontName = "Times-Roman" s.TextInfo.FontSize = 11 oT.Segments.Add(s)
Q2. I could not make LineSpacing work for text inside a table cell.
Sample code:
Dim tf2 As Aspose.Pdf.TextInfo = New Aspose.Pdf.TextInfo tf2.LineSpacing = 20 ' no effect!!! tf2.FontSize = 10 tf2.Color = New Aspose.Pdf.Color("Black") tf2.FontName = "Helvetica" tf2.Alignment = AlignmentType.Left ... oMRow.Cells.Add("long value text here", tf2)
Thanks
HL