Expand my Community achievements bar.

app.openDoc

Avatar

Former Community Member

I am using app.openDoc(FilePath.rawValue); where FilePath is just the name of the pdf (file.pdf).  I works on some machines, but not others.  If I put the full path in, it works all the time.  However, as long as the form and the other file is in the same folder, I want it to open.  Any ideas?

1 Reply

Avatar

Former Community Member

I think it was designed to work that way ....for security reasons. Doing anything without the users knowledge is not allowed. By opening a file in the same location that you launched from it is using that as a trusted location. I believe that these restrictions are discussed in the Acrobat javascript reference.

Paul