Re: Scripting Acrobat - Linkannotations
Re: Scripting Acrobat - Linkannotations
- Subject: Re: Scripting Acrobat - Linkannotations
- From: email@hidden
- Date: Tue, 28 May 2002 15:41:09 EDT
-----It appears that email@hidden wrote, on 2002-03-25
3:28 PM:
>
Does anyone have a example how to script an PDLinkannotation
I guess Frans never got an answer, eh?
I too would love to learn anything more about this. I have tried in vain
to script what should be the most basic of links: NextPage, PrevPage,
LastPage . . . but can only make a link to a page number (i.e., "1") and
specify the bounds and color of the rectangle ("None" or "invisible"
won't work.)
Here's the script:
tell application "Acrobat(TM) 4.0"
set x to name of document 1
tell PDPage 2 of document x
set newLinkAnnot to make PDLinkAnnot
set bounds of newLinkAnnot to {332, 562, 412, 546}
set color of newLinkAnnot to {65535, 0, 0}
set destination page number of newLinkAnnot to 1
-- And my futile attempts at something besides a page number:
(*
set execute menu item of newLinkAnnot to "LastPage"
--> Acrobat(TM) 4.0 got an error: Can't set execute of menu item of
PDAnnot 7 of PDPage 2 of document 1 to "Open".
*)
(*
set perform of newLinkAnnot to execute menu item "LastPage"
--> Acrobat(TM) 4.0 got an error: Some data was the wrong type.
*)
end tell
end tell
Anyone have any good news to report about scripting Acrobat?
TIA,
Dan Feather (who would appreciate BCC replies to email@hidden)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=featherweightstuff===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.