These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat Pro X Display file path

kirby87
Registered: Jul 27 2008
Posts: 5

Is there some way to see the path of a file example C:\documents\clients\filename.pdf in Acrobat when working on a document? In Word, I can see this on a status bar at the top or bottom of the screen. I know I can find it in properties, but I would like to be able to just see it from the main document view.
 
I saw old posts about using a java script -- I don't know how to set that up. I don't need it to do anything -- just display.
 
Thank you!

My Product Information:
Acrobat Pro 10.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
There is no way to add that to the PDF display. The only possibility is if you create all the PDFs or modify the PDFs to include a document level JS to add a toolbar. Normally this is done when the application is started, but adding a tool bar button during the opening of a PDF will make a floating tool bar. This method is available for versions 6 or above.

try {
app.removeToolButton('XYZDocPath');
} catch(e) {}
finally{
app.addToolButton({cName:"XYZDocPath",
cExec:"",
cLabel: this.path});
}

George Kaiser

Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi kirby87,

This may not be what you want as gkaiseril has already pointed out you can't invoke anything to make this happen for all PDFs opened in Acrobat. But you can add the path to the file in the "Title" field in the Document Properties dialog, then under the Initial View tab set the Windows Option to "Show:Document Title." Now that file will show that path in Acrobat's title bar. Of course if you change the location of the file you would need to change it in the Properties Dialog also, which could prove problematic down the line. But, it is a way to show the path.

Hope this helps,

Dimitri
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Dimitiri,

That is a good idea. One could also use a document level script to fill in the document title.

this.info.Title = this.path;

And as you noted, one needs to set the title bar to show the document title and not the file name. For others, there is no JS to make this change.

George Kaiser

kirby87
Registered: Jul 27 2008
Posts: 5
Hi Dimitri,
I tried your suggestion and it would be easier to just look in the document properties than to change the title in my work process. But that could work for someone else.

Hi George,
Can you walk me through how to use the script you posted to create a floating toolbar? I don't know how to go about that.

Many thanks!