Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newby: plugin to overload Acrobat security handler

Status
Not open for further replies.

mingis

Programmer
Jan 23, 2002
475
LT
I have just started investigations on how do Acrobat Reader plugins work. I would like to overload standard Acrobat authorisation handler to let my users to access password protected PDF's using my own authorisation rules. I have downloaded an Acrobat 5.0 SDK from There I have found a security handler overloading example at
PluginSupport\Samples\Security and Digital Signatures\SecurityHandler.
I have compiled it using MSVC 6.0, everything seems ok, the new created API DLL is launched (I see messages put by me inside of DllMain() routine) but neither PISetupSDK() nor InitializeSecurityHandler() are called during the DLL
initialisation. Project uses file PIMain.cpp from the common directory PluginSupport\Headers. It is confusing to me - as I understood, this file is only template for plugin entry file, there are no calls to any SecurityHandler initialization routines. Or may be they must be put to
some function pointer initialization arrays?
What could be wrong? Is here something missing?
 
Next step :)
The handler works with Adobe Acrobat, not with Acrobat Reader. The overloaded security settings are stored to the PDF file, overloaded pasword entering dialog is called by loading the newly encrypted PDF to Adobe Acrobat. But by
opening of that document by Acrobat Reader an error message
"... ADBE:SecHandler not available ..." is output. The SecurityHandler.api file I have copied to both -
C:\Program Files\Adobe\Adobe Acrobat 5.0\Acrobat\Plug_ins
and
C:\Program Files\Adobe\Adobe Acrobat 5.0\Reader\PLUG_INS
directories.
Any hints?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top