On 6 Mar, Jeremy Nicoll - freelists wrote in message <gemini.kyv7qy000p1bd01lc@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>: > Steve Fryatt <lists@xxxxxxxxxxxxxxxxxx> wrote: > > > I've not really considered what can be done with the script language in > > O-Pro before, but have been looking into writing an applet to scan a > > document and calculate bounding boxes around pieces of text in specific > > styles (effectively like an indexer, but recording where those > > references appear on the page, instead of what pages they're on). > > If one can find the position of a single character in the stream of > characters in a particular frame, and if that frame is the one that holds > the whole chapter, then you may be able to find the character number of > the first and last characters on each page. > > Then you might at least be able to say that (say) the first or last > character in a bounded section is positioned - say - 20% of the way into > page <n>. It would need to be more accurate than that, I think. I'm looking for a way to generate PDF hotlinks based on styles set in a document, so the target would be to be able to identify the position accurately to the location of the line itself. -- Steve Fryatt - Leeds, England http://www.stevefryatt.org.uk/ To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling