8 Replies Latest reply: Jul 9, 2014 11:03 PM by BrettMcKenzie RSS

    Saving via Reader-Enabled plugins - An unimplemented or obsolete function was called

    BrettMcKenzie Community Member

      Hello,

       

      I have recently Reader-Enabled my plugin, and am getting an issue using PDDocSave; getting "An unimplemented or obsolete function was called".

      Testing in X and XI has the same response.

       

      Reading Re: Acrobat Reader X and PDDocSave it seems that it is a bug in X, but I would have assumed something like this would be fixed by XI.

       

      The below code has it saving the file where it is, but I am also calling the function with the PDSaveCopy flag to a different location and get the same result.

       

      AVDoc avDoc = AVAppGetActiveDoc();

      PDDoc pdDoc = AVDocGetPDDoc(avDoc);

      ASFile asFile = PDDocGetFile(pdDoc);

      ASFileSys asFileSys = ASFileGetFileSys(asFile);

      ASPathName asPath = ASFileAcquirePathName(asFile);

       

      PDDocSave(pdDoc, PDSaveFull | PDSaveLinearized | PDSaveCollectGarbage, asPath, asFileSys, NULL, NULL);

       

      I thought perhaps the save flags may have been the issue, but eliminating one-by-one had no change.

       

      I don’t have the /READER_PLUGIN conditional on, if I do I cannot compile at all - Re: How can I save current document in my Reader plugin? 

       

       

      Thanks for your help. Thought I'd ask here before putting in a support request.