pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

how to fit too long words to fit into multi-line column.

Open yogi4yu opened this issue 11 years ago • 4 comments

Hi, I am using pdfmake through ui-grid. If there is more data in a column more than it's width, it justifies it so that it moves to next line provided that there's space between characters. But if it's a very long continuous word, it overlaps into next column content. How can tell pdfmake to break the word & move to next row , instead of writing it on to next column's data, on occurrence of characters like underscore(_) or hyphen (-) along with space.

        I would also like to know how to pass column widths dynamically to pdfmake? For example, if a user adjusts the column width in ui grid through web interface, can I capture & send the same column width to pdfmake if he clicks on "export as pdf" ?

Regards,

yogi4yu avatar Aug 31 '15 13:08 yogi4yu

I have also observed that coumns containing large numerical values break it on '-' , but alphanumeric strings don't

yogi4yu avatar Sep 01 '15 09:09 yogi4yu

+1

csvan avatar Oct 17 '16 08:10 csvan

+1

holly-weisser avatar May 03 '17 19:05 holly-weisser

duplicate: https://github.com/bpampuch/pdfmake/issues/204

liborm85 avatar May 04 '17 06:05 liborm85