-
1. Re: how to debug my plugin during view pdf on web?
ChromeUser Apr 14, 2010 11:46 PM (in response to ChromeUser)I have found the answer:http://forums.adobe.com/message/1165242#1165242
-
2. Re: how to debug my plugin during view pdf on web?
ChromeUser Apr 15, 2010 1:33 AM (in response to ChromeUser)The ASPlatformPathGetCstringPtr() give the empty name when open pdf in IE,how can i get the file name or URL?
Also AVAppGetActiveDoc() do not return the active doc,is there some method to get the doc user viewing?
Thanks.
-
3. Re: how to debug my plugin during view pdf on web?
lrosenth Apr 15, 2010 4:17 AM (in response to ChromeUser)How did you get the ASPlatformPath? Are you sure that it's valid?
Assuming you have a valid path to the document, it should give you something useful to work with.
-
4. Re: how to debug my plugin during view pdf on web?
ChromeUser Apr 15, 2010 7:30 PM (in response to lrosenth)ASPlatformPath asPlatPath = NULL;
ASFile asFile = PDDocGetFile (pDoc);
if(!asFile)E_RETURN(NULL);ASPathName aspName = ASFileAcquirePathName (asFile);
if(!aspName)E_RETURN(NULL);
ASFileSys asFileSys = ASFileGetFileSys (asFile);
if(!asFileSys)E_RETURN(NULL);ASInt32 asRet = ASFileSysAcquirePlatformPath (asFileSys, aspName, ASAtomFromString("Cstring"), &asPlatPath);
this is my code to get ASPlatformPath,the return value asRet is 1073741833
these method called in void AVDocDidOpen (AVDoc doc, Int32 error, void * clientData) notification.
How can i get a valid ASPlatformPath?
-
5. Re: how to debug my plugin during view pdf on web?
lrosenth Apr 16, 2010 3:43 AM (in response to ChromeUser)Try using ASFileSysDisplayStringFromPath()
-
6. Re: how to debug my plugin during view pdf on web?
ChromeUser Apr 18, 2010 7:07 PM (in response to lrosenth)This method return NULL


