Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adobe Acrobat 8.0 automation using vc++ mfc

4 views
Skip to first unread message

Abhishek...@adobeforums.com

unread,
Jan 11, 2007, 12:36:04 AM1/11/07
to
Hi,

I am trying to automate Adobe acrobat 8.0 using vc++ and mfc.

Here is the code snippet,

CCAcroApp8* p_pdfApp = NULL;

OleInitialize(NULL);
int bRet = 0;
COleException err;
p_pdfApp = new CCAcroApp8();
bRet = p_pdfApp->CreateDispatch("AcroExch.App",&err);
if (!(bRet))
{
// We found an error. Set Error string and Error Code and return.
delete p_pdfApp;
return ;
}
p_pdfApp->Show();
CCAcroAVDoc8* pAVDoc = new CCAcroAVDoc8();
pAVDoc->Open((LPCTSTR)"d:\\selfcare.pdf","Self Care");
CCAcroPDDoc8* pAcroDoc = new CCAcroPDDoc8(pAVDoc->GetPDDoc());
pAcroDoc->Open((LPCTSTR)"selfcare.pdf");
int lPageCnt = pAcroDoc->GetNumPages();

On execucitng this code once, I get to see the Adobe Acrobat launched, but it neither closeds or exits when the program ends, aslo next execution results in no visible adobe window.

Kindly suggest.
Are there any manuals or online docs available for adobe acrobat com api's

Thanks in advance,
Abhishek Asthana

Aandi_...@adobeforums.com

unread,
Jan 11, 2007, 4:19:06 AM1/11/07
to
It is extremely difficult to program Acrobat without the
documentation, of which there must be around 10,000 pages now. Look
for the Acrobat SDK.

Aandi Inston

agilegeek

unread,
Jan 11, 2007, 4:32:49 AM1/11/07
to

Hi,

Great. However I have a major issue. I am developing on Visual Studio
2002.Net due to client restrictions which uses .NET Frameworkl 1.0 and
Adobe 8.0 SDK uses framework 2.X.Y. So I cannot install the SDK on my
development machine,

Just curious if somewhere we have online documentation for the Adopbe
8.0 SDK for Windows.

0 new messages