Extracting text from PDF

Richard Gaskin ambassador at fourthworld.com
Fri Feb 22 14:59:35 EST 2008


Kay C Lan wrote:

> Probably no use to you Richard as I believe this is for personal use only as
> it requires PDF2RTFService from Devon Systems:
> 
> http://www.devon-technologies.com/products/freeware/services.html
...
> So in Rev:
> 
> launch tFileName with "/yourHD/Applications/TextEdit.app"
> 
> the 8 line AppleScript looks like this:
> 
> 1 tell application "TextEdit"
> 2  set theText to the text of document 1
> 3  make new document
> 4  set the path of document 1 to "/yourHD/Users/Shared/Untitled1.txt"
> 5  save document 1
> 6  close document 1
> 7  close document 1
> 8 end tell

Wonderful!  That's actually exactly what I need, as this is just a 
one-time tool for internal use only to help me build a textual index of 
a collection PDF files.  Thank you for the help -- much appreciated.

I should also thank Tom McGrath, who kindly sent me a fully functional 
Automator action to do that too.  It runs well but only in Leopard, and 
it simplifies what I need to do to be able to generate the paths 
dynamically in Rev, so the AppleScript solution is a better fit for this 
task.  Just the same, Tom I very much appreciate your taking the time to 
put that together.  You've always been such a very helpful member of 
this community.

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the Use-livecode mailing list