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