Skip to main content
Known Participant
Dec 1, 2026 6:38 AM UTC
Question

Issue fetching File path from PDDoc

We are using the following code in our Acrobat plug-in to retrieve the file path associated with a PDDoc. This implementation has been working reliably for many years across multiple customer environments. However, one of our customers has recently reported that the plug-in is no longer able to retrieve the file path for certain PDF files.

The customer's setup is as follows:

  • The PDF files are stored on a network server.
  • The server is accessed through a mapped network drive (mapped from an IP address/shared location).
  • When the customer opens a PDF from this mapped drive, our plug-in fails to retrieve the file path.
  • The customer confirmed that the same workflow was functioning correctly earlier and only recently started failing.
  • According to the customer, there have been no known changes to network permissions, security settings, access rights, or server configuration.

The code currently used is:

CString commonUTILS::GetActiveFIleName(PDDoc pdDoc)

{

    CString csSourceFile;

 

    ASPathName asSourcePath = ASFileAcquirePathName(PDDocGetFile(pdDoc));

    char* lsSourcePath = ASFileSysDIPathFromPath(ASGetDefaultFileSys(),

                                                 asSourcePath,

                                                 NULL);

 

    csSourceFile = lsSourcePath;

 

    ASFileSysReleasePath(ASGetDefaultFileSys(), asSourcePath);

    ASfree(lsSourcePath);

 

    csSourceFile = IOUTILS::ParseFilePathTOUNC(csSourceFile);

 

    CString csFile = GetAcFileName();

    return csFile;

}

We would appreciate guidance on the following questions:

  1. Is there anything in this code that could cause failures when accessing documents opened from mapped network drives ?
  2. Are any of the APIs used here (such as ASFileAcquirePathName() or ASFileSysDIPathFromPath()) deprecated, obsolete, or known to have limitations in recent Acrobat/Reader versions?
  3. Have there been any Acrobat SDK changes that could affect path retrieval for files stored on network locations?
  4. What is the currently recommended SDK approach for retrieving the full file path of a document?
  5. Are there any known issues or best practices for handling mapped drives, UNC paths, or network-mounted locations when working with PDDoc and ASFile APIs?

Customer having acrobat version 2026.000.22110 (32 bit) on his machine

Any recommendations for troubleshooting or migrating to newer APIs would be greatly appreciated