react-native-pdf-lib icon indicating copy to clipboard operation
react-native-pdf-lib copied to clipboard

How can I do word wrap of text in drawText ?

Open rameshkannank opened this issue 4 years ago • 1 comments

I needed to add text to PDF. The text can be a multiline or a single large line. In both cases, I need to add the text in multiple lines. What is the best way to do it?

rameshkannank avatar Jun 27 '21 17:06 rameshkannank

This library doesn't support full text layout. The best way would be to either submit a PR to support word wrapping, or to calculate the lines yourself and lay them out one at a time.

thekevinbrown avatar Nov 07 '21 23:11 thekevinbrown