Previous | Next | (P-PDF) Developers
Topic: How to Find Coordinates of a Search Result
Conf: (P-PDF) Developers, Msg: 116959
From: Garrett_Cobarr
Date: 8/9/2004 04:51 AM
Dave, there is an excellent example of the code needed for this in
the Acrobat JavaScript Scripting Reference, Technical Note #5431,
version 6. It is on page 138, example 2, it is an example under the
the doc method addLink.
It is only half your problem in that it is identifying the word and its
coordinates, or as it is known in Acrobat JS -getPageNthWordQuads,
the second half is your image.
Acrobat only accepts PDF image importation. So you would need to
convert your JPEGs to PDFs before you ran the operation.
There will be some substantial noodling and I don't want to over
simplify what's ahead but I think it is doable.
Good scripting!
____________________________
Garrett Cobarr
Lingua Media Group
206-770-9353
PO Box 95737
Seattle, WA 98145-2737
USA