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

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


      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.






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

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