Created in Adobe Acrobat Java script does not work in drive

Hello

This is my first post, so I hope that I have chosen the correct path for her

Let's get to the point:

I created a java script in Adobe Acrobat according to your tutorial page:

search.matchCase = false;

search.wordMatching = "BooleanQuery."

Search.Bookmarks = false;

Search.Query (Mytxt ","Folder",".. /My directory');

I found work as a call a relative link, because, after copying my file in another folder it would continue to operate. But when I open the same file in Adobe Reader I got a message on the Console:

The built-in functions of EScript Acrobat Version 10.0

Acrobat SOAP 10.0

GeneralError: Operation failed.

Undefined Search.Query:4:Link: mouse upwards

Folder does not exist

As I mentioned earlier the same file returns the results of the search.query in this folder in Acrobat. Any ideas? Suggestions? What could be the problem?

And if you want only "under", you can use something like this:

var fileNameParts = this.path.split("/"); "

var ParentFolder = fileNameParts [fileNameParts.length - 2];

Tags: Acrobat

Similar Questions

Maybe you are looking for