2 Replies Latest reply: May 11, 2010 6:47 PM by ChromeUser RSS

    about ASFileGetURL

    ChromeUser Community Member

      When i call Adobe Reader ActiveX control in my app,i found my Reader plugin cannot get the right file URL.

      Example i call m_pdfViewer.LoadFile("C:\\test.pdf"), then the file url i got in my plugin will be C:\\test.pdf + some strange characters.

      Where is my wrong?

      thanks.

        • 1. Re: about ASFileGetURL
          lrosenth Adobe Employee

          Is it possible that you were expecting null terminated data and it wasn't?  Not checking the length of the returned string properly?

           

          Offhand, there isn't any reason it shouldn't work and return the correct data...

          • 2. Re: about ASFileGetURL
            ChromeUser Community Member

            Yes,i was expecting a null terminated string in the right position.

            I don't know that the characters appended to filename is random or fixed.

            I'm using Acrobat SDK 8 + Adobe Reader 9 on Windows XP + SP2 and call ASFileGetURL in AVDocDidOpen notification.

            PDDoc pDoc = AVDocGetPDDoc(doc);

            ASFile asFile = PDDocGetFile(pDoc);

            char* pURL = ASFileGetURL (asFile);