• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading a pdf text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading a pdf text file


  • Subject: Re: Reading a pdf text file
  • From: Gil Dawson <email@hidden>
  • Date: Mon, 10 Jan 2005 07:20:25 -0800

Success!

Thanks for some more great suggestions:

    At 11:31 AM +1100 1/10/05, Tim Mansour wrote:
    > you can just type "pdftotext" at the command line

    At 1:22 AM +0000 1/10/05, Martin Orpen wrote:
    >It will install it into /usr/bin...

    At 10:44 AM -0500 1/9/05, Richard Smykla wrote:
    >>> ...can be found in the /sw/bin/ directory.

    At 8:47 PM -0500 1/9/05, Richard Smykla wrote:
    >downloading and installing the Fink utility:
    ...
    >and also the Apple Developers' Tools CD with XCode...

    At 9:10 PM -0500 1/9/05, Richard Smykla wrote:
    >on my daughter's iMac... /usr/local/bin/...

That last one worked!

To review, the following AppleScript using Script Editor 2.0 in MacOS 10.3.7 worked:

property pdfFile : alias "TopDisk:path:to:file.pdf"
set response to POSIX path of (pdfFile)
log response
set commando to "/usr/local/bin/pdftotext -layout "
              & quoted form of response
log commando
do shell script commando

The complete 15-page file was translated completely to a similarly-named file with a .txt extension in the same folder. This looks like it will do the job!

Thanks, guys!

--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Reading a pdf text file
      • From: Gil Dawson <email@hidden>
References: 
 >Re: Reading a pdf text file (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Hidden Folders
  • Next by Date: A request
  • Previous by thread: Re: Reading a pdf text file
  • Next by thread: Re: Reading a pdf text file
  • Index(es):
    • Date
    • Thread