aspose file tools*
The moose likes XML and Related Technologies and the fly likes Is there a way to find position in a PDF using XSLT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Is there a way to find position in a PDF using XSLT?" Watch "Is there a way to find position in a PDF using XSLT?" New topic
Author

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

Jay Dilla
Ranch Hand

Joined: Aug 12, 2004
Posts: 199
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
Bartender

Joined: Oct 14, 2005
Posts: 18151
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a way to find position in a PDF using XSLT?
 
Similar Threads
a question about API Contents
JSP.2.3.4 Empty Elements - JSP Specs ?
character method of ContentHandler
response.setHeader(xxx, xxx)
Splitting a String