PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________

Hi,

To be continued from my previous message and my new tests following Aandi's answer...

I made a plugin with SDK v5 which replace the AVDocOpenFromFileWithParams built-in method. This method changed from, in SDK v5 :

AVDoc AVDocOpenFromFileWithParams(ASPathName pathName
        , ASFileSys fileSys
        , char* tempTitle               // A char* type
        , AVDocOpenParams params);

to, in SDK v6 :

AVDoc AVDocOpenFromFileWithParams(ASPathName pathName
        , ASFileSys fileSys
        , const ASText tempTitle        // Here is the difference
        , AVDocOpenParams params);

This plug-in, whatever the replacing method, compiled with Acrobat SDK v5 does not work with Acrobat v6 PRO (and Win XP SP1), in fact, it works but when Acrobat unloads, it doesn't shut down and stays in the background taking near 100% CPU resources. All other attempts to re-run Acrobat re-runs it as a new process, leaving the other active.

If I compile with Acrobat SDK v6 using the first form, I have a type-checking error in the REPLACE method, which is normal, because it waits for an ASText.

If I compile with Acrobat SDK v6 using the second form, and with compatibility with v5 (in commenting v6 specific HFT entries), when I launch Acrobat 5.0, I have an error message saying "Can not load, attempt to replace a not replaceable selector", which is normal, because this callback's definition changed.

Does this mean that all plug-ins written with Acrobat SDK v5 replacing this method will fail in Acrobat v6 ? And does this mean that I have to make 2 different plug-ins, one for Acrobat v5 and the other for Acrobat v6 ?

Has anyone an answer or the same experience ? Thanks.

Mikael LAUSSEUR
Aalto Consultant
FRANCE


To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html



Reply via email to