Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Set line spacing issue when set within pdf object

Last post 11-12-2008, 9:17 PM by forever. 3 replies.
Sort Posts: Previous Next
  •  08-27-2008, 8:54 AM 141443

    Set line spacing issue when set within pdf object

    Hi support,

    Here is a non-critical issue, at least at this time : a code line like pdf.getTextInfo().setLineSpacing(<my value>), where pdf is a Pdf object, does not seem to have any effect. Instead, it works when using a section object.

    Regards,
    Milan


     
  •  08-27-2008, 3:45 PM 141521 in reply to 141443

    Re: Set line spacing issue when set within pdf object

    Hello Milan,

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


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

    Keep in touch! We're on Twitter and Facebook
     
  •  08-28-2008, 8:04 PM 141706 in reply to 141443

    Re: Set line spacing issue when set within pdf object

    Hello milan,

    When you want to use the method: pdf.getTextInfo().setLineSpacing(<my value>), you have to call this method before any Section has been added to the document. As the pdf.getTextInfo().setLineSpacing(<my value>) functions in the entire document, If you call this method later, it's hard to adjust all the objects which have been added to the document to the linespacing you specified. Here is some demonstrating method.

    Pdf pdf = new Pdf();
    pdf.getTextInfo().setLineSpacing(10F);
    Section sec1 = pdf.getSections().add();
    Text text1 = new Text(sec1," first line \n second line");
    sec1.getParagraphs().add(text1);


    I hope this will help. Thank you for using our product!

    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-12-2008, 9:17 PM 152307 in reply to 141443

    Updated component version is available

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


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML