Solved

Is it possible to apply a word wrap to text going into a PDF writer?

  • 13 August 2021
  • 2 replies
  • 36 views

Badge +5

I am creating PDF documents with a series of responses, so I first create a multi-line attribute then I pass that through the PDFPageFormatter and onto a PDF writer. The problem is some of the responses run off the page. I am needing to restrict the width of the multi-line attribute using something like a word-wrap function.

 

Any ideas?

icon

Best answer by drc43 13 August 2021, 19:45

View original

2 replies

Badge +10

I highly recommend the Custom Transformer - TextWrapper. I had a similar problem and this solved it beautifully.

https://hub.safe.com/publishers/david-r/transformers/textwrapper

Badge +5

Thank you @drc43​ , that worked well.

Reply