Re: Scripting Acrobat

From: David Livesay (dlivesay@MAC.COM)
Date: Wed May 23 2001 - 12:52:53 AEST


'Twas 5/22/2001 5:57 PM when Pelto, Chuck did write:

>...I'm having fun trying to consolidate about 20 different pdf files into 1
>that can be readily e-mailed out, one over the proverbial world (or our
>piece of it).
>
>I've been toying around with Acrobats AS capabilities and noticed a few
>things.
>
>[1] They don't do a very good job of documenting their syntax.

No they don't. Especially not in the dictionary. They do a slightly
better job in a document called "Acrobat Interapplication Communication
Reference", which is available from
http://partners.adobe.com/asn/developer/acrosdk/docs.html. Scripting
Acrobat isn't easy, but you'll find it damn near impossible without this
document.

>[2] There are calls that they don't list in their dictionary that seem to
>work better than the calls they do document in their dictionary.
>[3] Their sense of "English" leaves me a bit baffled. [Case in point....when
>they say "Insert". It apparently doesn't really insert pages. Rather it
>creates a link between documents. Or so it seems to me. Or am I mistaken?]

You are mistaken. Inserting pages does really insert them, and you have a
fair amount of control over where you put them, how many, and whether you
include bookmarks. Where most people go awry with this is that they
either don't realize that insertion is a document-to-document
interaction, or they don't grasp the distinction between a file and a
document. This is probably because when you insert pages via the user
interface, you need to select a file to insert them from, but when you're
scripting it, you need to have both the source file and the destination
file opened and referenced as documents.

>Where can I find good examples of how they make their calls in Acrobat for
>AppleScripting purposes?

If you can't figure it out from the document I mentioned above, I have
tons of examples.

Dave
--
"A Jedi's strength flows from The Source. But beware of the dark side.
COM... DCOM... VB... ActiveX... ADO... ASP... .NET.... The dark side of
The Source are they. Easily they flow, quick to join you in a project. If
once you start down the dark path, forever will it dominate your destiny,
consume you it will."

------------------------------



This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:29 AEST