• 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: ? selecting text in a pdf page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ? selecting text in a pdf page


  • Subject: Re: ? selecting text in a pdf page
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 17 May 2003 21:03:09 +1000

On 17/5/03 8:22 PM +1000, Michael Cytrynowicz, email@hidden, wrote:

> I tried everything I could think of, plus looked in the Acrobat dictionary -
> to no avail.
>
> Is it at all possible to use applescript to select / get text from an open
> pdf page?
>
> I just wanted to rename that pdf filename using the selected text (and
> making sure its less than, say, 127 chars) - adapting a neat script that
> does this for Tex-Edit (OK, I know its no comparison ;-)

It's not pretty, but:

tell application "Acrobat 5.0"
activate
goto document 1 page 1
select text AVPageView 1 of document 1 from words {1, -1}
execute menu item 5 of menu 2
set theText to (get the clipboard as string)
end tell

--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Detecting Default PDF reader/writer
      • From: Courtney Moore <email@hidden>
References: 
 >? selecting text in a pdf page (From: Michael Cytrynowicz <email@hidden>)

  • Prev by Date: ? selecting text in a pdf page
  • Next by Date: Re: Finding Duplicate named files with exactly the same size
  • Previous by thread: ? selecting text in a pdf page
  • Next by thread: Detecting Default PDF reader/writer
  • Index(es):
    • Date
    • Thread