Tuesday, August 30, 2011

Setting Up Acrobat 9 SDK Sample Plug-In Projects in Visual Studio 2010 C++

Download the Acrobat SDK for Acrobat 9 and extract/install.

The resolution:
  1. You will likely get an error complaining about the AcroSDKPIDir environment variable.
    • Create this environment variable and have it point to the plug_ins directory underneath your acrobat directory in program files
  2. Now go to Project Properties->Build Events->Post-Build Step
  3. In the Command Line property put
    • copy "D:\PathToYourProjectFolder\Debug\*.api" "$(AcroSDKPIDir)"
  4. Now go to Project Properties->Build Events->C/C++
  5. In Additional Include Directories include (your paths may vary):
    • D:\Acrobat\sdk91_v2_win\Adobe\Acrobat 9 SDK\Version 1\PluginSupport\Headers\API
    • D:\Acrobat\sdk91_v2_win\Adobe\Acrobat 9 SDK\Version 1\PluginSupport\Headers\SDK
    • D:\Acrobat\sdk91_v2_win\Adobe\Acrobat 9 SDK\Version 1\PluginSupport\Headers\3D
Enjoy....

0 comments: