Jay Dilla wrote:I'm having an issue where content is being truncated when it hits the end of a line in the PDF. It's not wrapping(unless there is white space in the character string). I'm trying to come up with XSL logic that will check that an elements length does not exceed the width of the PDF....and if so insert white space so that it automatically wraps on to the next line.
So this is a question about your XSL-FO logic, is it? (It helps to be clear about your question's topic.)
I'm unable to find a way to find what position I'm in in the PDF though(some fields might start in the middle of the page).
That sounds like the wrong strategy for a functional language, at least to me it does. I would be looking for an element or an attribute which says that the text is allowed to wrap to the next line. Although I would have expected that would be the normal thing for text to do in a PDF... this just tells you how little I know about XSL-FO.