Skip to main content
Solved

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


bozboswell
Contributor
Forum|alt.badge.img+7

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?

Best answer by drc43

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

View original
Did this help you find an answer to your question?

2 replies

drc43
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Best Answer
  • August 13, 2021

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


bozboswell
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 20, 2021

Thank you @drc43​ , that worked well.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings