Previous | Next | (P-PDF) Developers
Topic: Re: GetJSObject() from C++ (Via Email)
Conf: (P-PDF) Developers, Msg: 105935
From: LeonardR
Date: 2/13/2004 12:47 PM
At 08:40 PM 2/12/2004, p-pdf-developers Listmanager wrote:
> > there is a COM equivalent (ExecuteThisJavaScript) to that you can use
> directly from your
> > VC application. See the FormsAPIReference.pdf document in the SDK for
> details.
>
>I spent all day figuring out how to get this object in C++, and finally
>got a hold of it and ran some JavaScript (yay!).
Congrats!
>Unfortunately, the Adobe security model will not let me call SaveAs() on a
>document from javascript unless that javascript lives inside the document
>itself (boo!).
Bummer!
Then what if you use the new AddDocumentJavaScript() command to
add a JS and then call it from your ExecuteThisJavaScript()??
>Does anyone know: Is it impossible to get Acrobat to write a PostScript
>file from an arbitrary document? It seems the API was specifically
>designed to prevent it.
This may be one of the few places where Acrobat on the Mac may
actually be better for IAC - since there is a nice SaveAs command that
happily exports PS and EPS, and has since 4.0...
Leonard
---------------------------------------------------------------------------
Leonard Rosenthol
Chief Technical Officer
PDF Sages, Inc. 215-629-3700 (voice)
215-629-0789 (fax)