Copy Text from Acrobat page

Hi
Can someone please tell me how I can copy the text from the first page of a PDF to a variable - can use GUI commands to copy it but I’m sure there’s a better way
Thanks!!


tell application process "Acrobat"
			click menu item "Select All" of menu 1 of menu bar item "Edit" of menu bar 1
			click menu item "Copy" of menu 1 of menu bar item "Edit" of menu bar 1
end tell

Why have you created two topics on this: http://bbs.applescript.net/viewtopic.php?id=16726 ?

open your doc in Preview mindtpi and try this. If your doc is large you may want delays.
If it works for you, please use with respect; some PDFs are PDF’d for a reason.


tell application "Preview"
	activate
	tell application "System Events"
		tell window 1 of process "Preview"
			keystroke "2" using command down
			--delay 1
			keystroke "a" using command down
			--delay 2
			keystroke "c" using command down
			--delay 3
		end tell
	end tell
end tell

Good Luck.

Model: Pmac G5 Dual2.0
AppleScript: Latest
Browser: Safari 417.9.2
Operating System: Mac OS X (10.4)

Thanks for your reply, however, I really need to do it in Acrobat

Now that you have your script for saving out indivual pages I thought your best route would be to use file conversion to plain text or RTF etc the dictonary is confusing on this issue. Try this script on conversions I can’t work it out yet and a scripting guide for Acrobat in AppleScript appears none existant. You may have more luck than me with this.

tell application "Acrobat 6.0.2 Professional"
	activate
	get default type of conversions
	get name of conversions
	get class of conversions
	get index of conversions
	get properties of conversions
end tell