Bulletlist with Tabs

Last post 02-04-2010, 4:37 AM by aspose.notifier. 7 replies.
Sort Posts: Previous Next
  •  12-04-2009, 8:00 AM 211336

    Bulletlist with Tabs .NET

    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("<ul><li>haha</li><li>hihi</li></ul>");

    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("<ol><li>haha</li><li>hihi</li></ol>");

    desc.TabStops = new TabStops();

    desc.TabStops.Add(100);

    desc.IsHtmlTagSupported = true;

    desc.IsInList = false;

    sec1.Paragraphs.Add(desc);

     

    //work not

    desc = new Text("<ul>#$TAB<li>haha</li><li>hihi</li></ul>");

    //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

     
  •  12-07-2009, 9:10 AM 211676 in reply to 211336

    Re: Bulletlist with Tabs

    Hello Wenzel,

     

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  12-16-2009, 3:51 AM 213216 in reply to 211336

    Re: Bulletlist with Tabs

    Attachment: Present (inaccessible)

    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("<ul><li>haha</li></ul>");
    desc.IsHtmlTagSupported =
    true;
    sec1.Paragraphs.Add(desc);
    desc =
    new Text("<ul><li>haha</li></ul>");
    desc.Margin.Left = 21;

    desc.IsHtmlTagSupported = true;
    sec1.Paragraphs.Add(desc);
    desc =
    new Text("<ol><li>haha</li><li>hihi</li></ol>");
    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  12-16-2009, 5:16 AM 213247 in reply to 213216

    Re: Bulletlist with Tabs

    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

     
  •  12-16-2009, 1:15 PM 213381 in reply to 213247

    Re: Bulletlist with Tabs

    Hello Markus,

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


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-17-2010, 12:50 PM 217473 in reply to 213247

    Re: Bulletlist with Tabs

    Attachment: Present (inaccessible)

    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("<ul><li>haha</li></ul>"
    );
    desc.IsHtmlTagSupported =
    true
    ;
    sec1.Paragraphs.Add(desc);
    desc =
    new Text("<ul><li>haha</li></ul>"
    );
    desc.Margin.Left = 21;
    desc.IsHtmlTagSupported =
    true
    ;
    sec1.Paragraphs.Add(desc);

    desc =
    new Text("<ol><li>#$TABhaha</li><li>hoho</li></ol>"
    );
    desc.Margin.Left = 21;
    desc.TabStops =
    new TabStops
    ();
    desc.TabStops.Add(100);
    desc.IsHtmlTagSupported =
    true
    ;
    sec1.Paragraphs.Add(desc);

    desc = new Text("<ol><li>hihi#$TABhaha</li><li>hoho</li></ol>");
    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");


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-17-2010, 11:27 PM 217494 in reply to 217473

    Re: Bulletlist with Tabs

    hi

    thx, that works

    Regrads

    Markus

     
  •  02-04-2010, 4:37 AM 220699 in reply to 211336

    Re: Bulletlist with Tabs

    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.
     
View as RSS news feed in XML