Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to find position in a PDF using XSLT?

 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. 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).
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic