Wrap text in footer

Posted by: ntd119 on 10 June 2020, 9:01 am EST

  • Posted 10 June 2020, 9:01 am EST - Updated 3 October 2022, 4:08 pm EST

    Hi

    I want to set pdf name on the left of the footer

    However, The text is override on the page number (picture (1))

    Can the text be wrapped text as picture (2) ?

    https://jsfiddle.net/8cbdk6zh/3/

    Please help me

    Thanks

  • Posted 11 June 2020, 12:36 am EST

    Hi,

    Simply add a new line character between the long text and it will break into different lines. Refer to the updated sample below:

    https://jsfiddle.net/70ohgt4c/1/

    Regards,

    Ashwin

  • Posted 11 June 2020, 5:03 am EST

    Hi,

    [Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test ] string is dynamic, get from the database.

    I think your way is not solved for this case

    Please help me

    Thanks

  • Posted 12 June 2020, 1:43 am EST

    Hi,

    The only way to wrap to text is to either add line feeds or use multiple drawText method. But they both use the same concept. You will need to divide the text into different parts.

    If you string is dynamic, then you can create a function that will insert line feed dynamically. Please refer to the sample link below:

    https://jsfiddle.net/torv9e5u/6/

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels