Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Developers


Topic: Re: GetJSObject() from C++
Conf: (P-PDF) Developers, Msg: 105908
From: kirkoman
Date: 2/13/2004 04:57 AM

Thanks for the response, Leonard

Wouldn't it be a LOT easier to just write a plugin and call it from there???

Boy, that's the truth. AFExecuteThisScript() in particular looks positively juicy. But I am adding functionality to an existing application. Acrobat rendering of PDFs to Postscript is just one (optional) piece of the pipeline. We could write a plugin just for the new functionality, but then we are managing two products, docs, support, installer smarts, blah blah blah. It is a possibility, but only if the OLE interface cannot be made to work.

> 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.

Do you mean "correct" there is no SaveAs(), or "correct" the JSObject will not give out its ITypeInfo? If the latter, are you saying this is by design?

Did Adobe put this method in its C headers just to be consistent? They could easily have hidden it by leaving it out of the interface (CAcroPDDoc is just a dispatch driver, after all).

> 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...

Sweet, I am on the cutting edge! If I succeed, I will let you know.



PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories