PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
I believe that you can write a single plug-in, but you have to be completely in touch with what is happening in your HFTs. Possibly make your own custom definitions of procedure types and HFT offsets. In Acrobat 6.0 you have two HFT entries. If you want to intercept all AVDocOpen calls you have to replace BOTH of them, each with different calling sequences, since either could be called, depending on the SDK version used to compile the other version. I don't think Adobe thought this through (these new calls should have had new names, what were they thinking of...) So, you can check the version and replace both in Acrobat 6, and only the old in Acrobat 5. You'll have to see what the HFT offsets are to do that. Hardcoding values is messy, but the situation is already a mess; you can be confident that if you load an HFT with a specific version number, that the offsets are fixed. And there's another problem with REPLACE - if there are two different HFT versions in Acrobat, does REPLACE get all of them or might it only get one? REPLACE is horrible, Adobe should have gone the extra few yards and provided callbacks where they were needed. Aandi > 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); ... > > 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.... > > 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 ? To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
