Search code examples
xmlxsltpdf-generationapache-fop

Apache FOP how to limit character length with line break / where to implement the function needed


XML to PDF conversion using Apache FOP;

How to implement a function to limit the character length of a charsequence (e.g. 0123_455-678) in a specific table box?

I got the problem, that one part of the table overlaps another one due to the length of data input with no spaces/regular separation in between. I would like to implement a function to linebreak the charsequence at a specific length, but don't actually know at which spot i have to place it.


Solution

  • Solved it! Needed to implement a template which is called at the table content in the layout.xml