Skip to main content
Jan 20, 2017 10:45 PM UTC
Answered

GetFileName

I see "GetFileName" listed for PDDoc in the SDK documentation, but the call PDDocGetFileName is not defined and when I look at PDCalls.h there is indeed no PDDocGetFileName.  Why is that?  Is there another way I can obtain the file name from AVDoc or PDDoc?

This topic is closed to new replies. Start a new post to keep the conversation going.
Test Screen NameCorrect answer
Legend
Jan 21, 2017 7:55 AM UTC

Go from PDDoc to ASFile and ASPathName.  There are ways to get filename, see also ASFileSys. Don't assume the default ASFileSys. It's easiest to get DIPath rather than platform path. Consider Unicode issues.

2 replies

Test Screen NameCorrect answer
Legend
Jan 21, 2017 7:55 AM UTC

Go from PDDoc to ASFile and ASPathName.  There are ways to get filename, see also ASFileSys. Don't assume the default ASFileSys. It's easiest to get DIPath rather than platform path. Consider Unicode issues.

Translate
Jan 23, 2017 4:17 PM UTC

Thanks!  That worked like a charm. 

Translate