Free Support Forum - aspose.com

Linefeed in HTML

Hi

Please take a look at the attached code times. If the text has HTML tags in it, then get the document Zeilenschaltugen that do not belong over there.

The 1st Line but should have no rows scarf tune, like the 2nd Line without HTML.

What am I doing wrong?

regards Markus

Code:

Pdf pdf1 = new Pdf();
pdf1.TextInfo.FontName = "Trebuchet MS";
pdf1.TextInfo.FontSize = 10;

Section sec1 = pdf1.Sections.Add();

//ohne Tabelle
Text displayText =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded,
PositioningType = PositioningType.PageRelative
};
sec1.Paragraphs.Add(displayText);

//ohne Html
Text displayText2 =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded
};
sec1.Paragraphs.Add(displayText2);
// Save the resultant PDF document
pdf1.Save(@"c:/temp/PureTabelWithHtmlTest.pdf");
System.Diagnostics.Process.Start(@"c:/temp/PureTabelWithHtmlTest.pdf");
Pdf pdf1 = new Pdf();
pdf1.TextInfo.FontName = "Trebuchet MS";
pdf1.TextInfo.FontSize = 10;

Section sec1 = pdf1.Sections.Add();

//ohne Tabelle
Text displayText =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded,
PositioningType = PositioningType.PageRelative
};
sec1.Paragraphs.Add(displayText);

//ohne Html
Text displayText2 =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded
};
sec1.Paragraphs.Add(displayText2);
// Save the resultant PDF document
pdf1.Save(@"c:/temp/PureTabelWithHtmlTest.pdf");
System.Diagnostics.Process.Start(@"c:/temp/PureTabelWithHtmlTest.pdf");

Hi Markus,


Thanks
for using our products.<o:p></o:p>

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 PDFNEWNET-34968. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.