Free Support Forum - aspose.com

Bulletlist with Tabs

Hi

I think that bulletlist with Tabs dose not work. Please show the following excampel Code.

Pdf pdf1 = new Pdf();

pdf1.IsBookmarked = true;

Section sec1 = pdf1.Sections.Add();

Text desc;

//work but in Bookmarklist

desc = new Text("

  • haha
  • hihi
");

desc.TabStops = new TabStops();

desc.TabStops.Add(100);

desc.IsHtmlTagSupported = true;

desc.IsInList = false;

sec1.Paragraphs.Add(desc);

//work but in Bookmarklist

desc = new Text("

  1. haha
  2. hihi
");

desc.TabStops = new TabStops();

desc.TabStops.Add(100);

desc.IsHtmlTagSupported = true;

desc.IsInList = false;

sec1.Paragraphs.Add(desc);

//work not

desc = new Text("

    #$TAB
  • haha
  • hihi
");

//desc.TabStops = new TabStops();

//desc.TabStops.Add(10);

desc.IsHtmlTagSupported = true;

sec1.Paragraphs.Add(desc);

// Save the resultant PDF document

pdf1.Save(@"Z:/pdftest/PureBullteMarkus.pdf");

System.Diagnostics.Process.Start(@"Z:/pdftest/PureBullteMarkus.pdf");

Regrards

Markus

Hello Wenzel,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Sorry for replying you late.

I have tested the issue and I’m able to reproduce the same problem. I have logged it in our issue tracking system as PDFNET-12455. We will investigate this issue in detail and will keep you updated on the status of a correction. We apologize for your inconvenience.

Hello Wenzel,

Thanks for your patience.

We're still working on this issue and trying our level best to get it resolved. During the investigation, we've devised a correct way of using Tab with BulletList. Please try using the following method and also please share

Do you want the TAB to appear inside the text or before the entire bullet?

It would be great if you could share some sample document/picture that can show the desired results.

[C#]

Pdf pdf1 = new Pdf();
pdf1.TabStopPosition = 21;
pdf1.IsBookmarked = true;
Aspose.Pdf.Section sec1 = pdf1.Sections.Add();
Text desc;

desc = new Text("

  • haha
");
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);
desc = new Text("
  • haha
");
desc.Margin.Left = 21;

desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);
desc = new Text("

  1. haha
  2. hihi
");
desc.Margin.Left = 21;
desc.IsHtmlTagSupported = true;

sec1.Paragraphs.Add(desc);
pdf1.Save(@"d:/pdftest/BulletIssueTest.pdf");

The resultant PDF that I've generated with the above code snippet is in attachment, please take a look.

Hello Nayyer,

thanks for your reply and providing a workaround.

Unfortunately I don't know the exact content of the HTML-formatted Text I'm trying to output in advance as it is generated by another tool. So basically the TAB can appear both before and after the bullet.

Regards
Markus

Hello Markus,

Thanks for the information. It would definitely help us while resolving this issue.

Hello Markus,

Thanks for your patience.

I'm pleased to inform you that the issue reported earlier has been resolved in the attached HotFix for Aspose.Pdf for .NET. Please try using it and in case you still face any problem, please feel free to contact.

You can also try the following code snippet to test the scenario. I've also attached the resultant PDF document.

[C#]

Pdf pdf1 = new Pdf();
pdf1.TabStopPosition = 21;
pdf1.IsBookmarked = true;
Aspose.Pdf.Section sec1 = pdf1.Sections.Add();

Text desc;
desc = new Text("

  • haha
");
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);
desc = new Text("
  • haha
");
desc.Margin.Left = 21;
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);

desc = new Text("
  1. #$TABhaha
  2. hoho
");
desc.Margin.Left = 21;
desc.TabStops = new TabStops();
desc.TabStops.Add(100);
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);

desc = new Text("

  1. hihi#$TABhaha
  2. hoho
");
desc.Margin.Left = 21;
desc.TabStops = new TabStops();
desc.TabStops.Add(100);
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);

// Save the resultant PDF document
pdf1.Save(@"d:/pdftest/TAB_Text_with_Bulltet.pdf");

hi

thx, that works

Regrads

Markus

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


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