6 Replies Latest reply: Aug 24, 2014 5:46 AM by BrettMcKenzie RSS

    Opening a document from a SharePoint URL

    BrettMcKenzie Community Member

      Using the SDK's instructions on how to open a file, I cannot find the right way to open a file from a SharePoint URL

       

      I understand it relates to the ASFileSys, and I thought ASGetDefaultFileSysForPath would give me the right type, but I cannot figure the right combination of pathType to get the right ASFileSys.

       

      Whatever I try, I get the below error

      2014-08-21_16-34-58.png

       

      Code below:

       

      ASAtom pathType = ASAtomFromString("CString");
      ASText titleText = ASTextNew();
      ASTextSetPDText(titleText, "This PDF was opened by using the Acrobat SDK");
      ASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, sharePointUrl);
      ASPathName pathName = ASFileSysCreatePathName(fileSys, pathType, sharePointUrl, NULL);
      AVDoc myDoc = AVDocOpenFromFile(pathName, fileSys, titleText);
      

       

      Anyone able to give me a push in the right direction?