Control the space between text Underline and Overline

is there a way to control the space between text and Underline and Overline?

Hi,

Thanks for using our products.
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
SimSun;mso-fareast-language:ZH-CN”>
I am afraid the requested feature is
currently not supported but for the sake of implementation, I have logged this
requirement in our issue tracking system under New Features list as <span style=“font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:SimSun;mso-fareast-language:ZH-CN”>PDFNET-31330
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
SimSun;mso-fareast-language:ZH-CN”>. We will investigate this issue in details
and will keep you updated on the status of a correction.

Hi,

In order to accomplish these requirements, two new properties i.e. UnderlineOffset and OverlineOffset have been introduced in our upcoming release version of Aspose.Pdf for .NET 6.4.0. Please be patient and wait for the new release (it’s expected to be released in a day or two).

[C#]

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
//Create a section in the Pdf object
Aspose.Pdf.Generator.Section sec1 = pdf.Sections.Add();
//Create 1st text paragraph
Aspose.Pdf.Generator.Text text1 = new Aspose.Pdf.Generator.Text(sec1, "Textunderline");
//Set IsUnderline property of Text.TextInfo to true
text1.TextInfo.IsUnderline = true;
text1.TextInfo.UnderlineOffset = -1.5f;
//Create 3rd text paragraph
Aspose.Pdf.Generator.Text text3 = new Aspose.Pdf.Generator.Text(sec1, "Text overline");
//Set IsOverline property of Text.TextInfo to true
text3.TextInfo.IsOverline = true;
text3.TextInfo.OverlineOffset = -2;
//Add 1st, 2nd and 3rd text paragraphs to the section
sec1.Paragraphs.Add(text1);|
sec1.Paragraphs.Add(text3);
pdf.Save("d:/pdftest/UderLine-Space-Controlled.pdf");

PS, Use positive value to move the line up and negative to move it down.

The issues you have found earlier (filed as 31330) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.