• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic