At 12:11 PM +0000 3/22/07, John Delacour wrote:
At 9:14 am +0100 22/3/07, Dominic Dunlop wrote:
...For some reason, Preview is not scriptable (shame, Apple,
shame), and nor is Adobe Reader.) You can even combine AppleScript
and Perl with, for example, Mac::AppleScript or Mac::Glue.
If all that's needed is to copy the whole text of a pdf window and
put it in a text file, then GUI scripting can be used.
This will work for some PDF files, but not all. Some have no text at
all (scanned only), and others the text has been generated badly, so
a two-column page will have text from column 1, line 1; then column
2, line 1; then column 1, line 2...
Sigh.
Avi
--
Complete Guide to Search Engines for Web Sites and Intranets
<http://www.searchtools.com>