RE: Acrobat Scripting
RE: Acrobat Scripting
- Subject: RE: Acrobat Scripting
- From: "Wadson, David" <email@hidden>
- Date: Fri, 26 Apr 2002 10:40:32 -0400
Hehe...yeah...like it's not a "page", it's a "pdpage". I suppose that's
fine and dandy if you're a hardcore PDF develop who can code them by hand,
but it doesn't make much sense to the common Applescripter.
I'll have to check out the SDK. I wouldn't think to look in there for
scripting information.
Offhand, is it possible to create a new PDF document from within a script?
I've written a couple of scripts that take a multi-page PDF and split it
into multiple files but in order to do it, I have to open a 2nd file, insert
the page I want into it, and then delete the other one. Be much easier if I
coiuld just take a page from one document and save it separately without the
extra steps...
David Wadson
Coordinator of Graphic Services
The Chronicle-Journal
807-343-6264
>
----------
>
From: email@hidden
>
Sent: Friday, April 26, 2002 10:08 AM
>
To: email@hidden
>
Subject: RE: Acrobat Scripting
>
>
Sharif,
>
I'm sure you are aware by now that scripting Acrobat is unlike any other
>
application you have ever attempted to script before. It has a syntax all
>
it's own.
>
My first recommendation is for you and anyone else interested in scripting
>
Acrobat to find the Acrobat SDK on Adobe's website and download it. It
>
contains a few scripting examples and a PDF of the dictionary. This PDF
>
contains a lot of syntax clues that are missing from the dictionary you
>
can
>
reference via Acrobat's dictionary through your script editor. I found it
>
a
>
good source for the following code which I hope will help get you over the
>
hurdle.
>
Code follows:
>
_________
>
tell application "Acrobat 5.0"
>
select text of AVPageView 1 from words {1, 99}
>
end tell
>
_________
>
End Code.
>
This snippet selects words 1 through 99 of the current document.
>
Hope you find this information helpful.
>
Kev
>
--
>
Kevin Talbert
>
L2 Support, Macintosh
>
(501)376.5226
>
_______________________________________________
>
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.
_______________________________________________
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.