Column word wrap (table and pdf)

Column word wrap (table and pdf)

MohdAbuMohdAbu Posts: 5Questions: 3Answers: 0

I have very long text without spaces in my table, also I have ColReorder extension and I want PDF export.

I managed to wrap long text in the table. But problem is with PDF generation. How can I wrap column text in pdf?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

  • MohdAbuMohdAbu Posts: 5Questions: 3Answers: 0

    Hi Colin,
    Am using the** "HTML5 Export"** code u have mention but still am facing the issue. See my attached file

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    You missed the attached. Can you look at the example in the thread I posted, and modify that to demonstrate your problem, please.

    Colin

  • MohdAbuMohdAbu Posts: 5Questions: 3Answers: 0
    edited December 2020

    Hi Colin

    http://live.datatables.net/fikoloyi/1/

    Please see last column, if i give text without any space then text is moving out of pdf and also full text is not visible in export PDF.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Yep, without a space, it's hard to know what to do by default. The solution here would be to use orthogonal data - and in columns.render determine what to do with those long strings, i.e. where to break them. This example here should get you going,

    Colin

This discussion has been closed.