Previous | Next | (P-PDF) Developers
Topic: Re: GetJSObject() from C++ (Via Email)
Conf: (P-PDF) Developers, Msg: 105885
From: LeonardR
Date: 2/12/2004 01:09 PM
At 07:12 PM 2/11/2004, p-pdf-developers Listmanager wrote:
>
I am trying to open a document and save it as a PostScript file using
>the OLE Automation API in VC++.
Wouldn't it be a LOT easier to just write a plugin and call it
from there???
>This works up to the point of opening the file, but there is no SaveAs()
>function in the API. The tantalizing GetJSObject() returns a live
>IDispatch object, but it will not give me its ITypeInfo, so I cannot call
>any of its methods.
Correct.
> I know the point of this object is for the VB bridge, but there *must*
> be a way to use it from C++ (right?).
In theory there is, but AFAIK, no one has ever tried...
>Know of any other way to run Acrobat Javascript from C++?
Yes, there is an ExecuteThisJavaScript() command in the AFormAut
library.
Leonard
---------------------------------------------------------------------------
Leonard Rosenthol
Chief Technical Officer
PDF Sages, Inc. 215-629-3700 (voice)
215-629-0789 (fax)