Solved

How to wrap text as an attribute for writing to PDF

  • 3 January 2018
  • 3 replies
  • 14 views

Badge

Hi there,

I am trying to write text values imported as attributes to a PDF, and want my text within the 'description' attribute to wrap when it reaches the edge of the page. I have tried to use the TextWrapper transformer, using the bounds extractor values, but no luck.

Screenshot below shows the resultant PDF from the above workbench, with title text (Site Diary) and the description as per the transformer below. I've tried adding in the PDFPageFormatter but this doesn't seem to make any difference

Any suggestions?

Many thanks

icon

Best answer by danilo_fme 3 January 2018, 20:32

View original

3 replies

Userlevel 4
Badge +30

Hi @andrewskl,

The transformer TextWrapper generate list of Attributes. For example:

Text:

"O futebol, também referido como futebol de campo, futebol de onze e, controversamente, futebol associado, é um desporto de equipe jogado entre dois times de 11 jogadores cada um e um árbitro que se ocupa da correta aplicação das normas"

Using TextWrapper with Maximum Line Length:80 and it was created 4 Lists:

If you try to Expose theses Lists of Attributes before the PDFPageFormatter?

Thanks,

Danilo

Badge

Thanks @danilo_fme this seems to have worked!

Userlevel 4
Badge +30

Thanks @danilo_fme this seems to have worked!

Hi @andrewskl

 

I'm happy to help you :)

 

Reply