4 Replies Latest reply: Mar 27, 2012 6:29 AM by Eldrarak82 RSS

    "This operation is not permitted" when saving PDF through a plugin

    Eldrarak82

      Not sure what I am doing wrong. It appears as though I've followed the PDF Reference and documentation correctly, but I am getting this error when my plugin trys to save my PDF file to a new location (dont want to overwrite the original).

       

      Here is the sample code. I hope what I am doing wrong is easy to fix.

       

       

       

       

      PDDocClose(currentPDDoc);

      ASPathName filePathName = ASFileSysCreatePathName(NULL, ASAtomFromString("CString"), replacedSavePath.c_str(), 0);

      PDDocSave(currentPDDoc, PDSaveIncremental | PDSaveLinearized, filePathName, ASGetDefaultFileSys(), NULL, NULL);