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

Plot Stamp on a .pdf?

TUNITUP
Registered: Jun 5 2008
Posts: 9

Trying to find an Adobe .pdf file can take a lot of time if I've forgotten where the electronic document is located. I include a "plot stamp" on all CAD files that automatically updates if the file is moved to a different folder and was wondering if the same principle could be applied to PDF documents.

How can I get the information concerning the location of a file (AutoCAD would define it as a plot stamp) and insert it in a footer or a text box with the actual name of the file included?

For the folks that access our pdf documents it will have to be printed in "Windows" jargon: "G:\Utilities\Drawings\Generators\Generator 4\GN4VP-1 VACUUM PUMP.pdf".

The idea is that this would be similar to the Document Properties | Description tab | Advanced | Location: information that is displayed.

I am presently using Adobe Acrobat 7.0 Professional. Everyone else pulling up the documents uses Adobe Reader.

Many thanks.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Unless you have a document management system, the only way to update information on a PDF is to open it in Acrobat. So, given this, you could add a text field to the bottom of your pdf that always displays the current path of the PDF.

If the "name" of the text box was "MyFooter", then placing this code in a document script would place the current file path into the text field.

this.getField("MyFooter").value = this.path;

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

TUNITUP
Registered: Jun 5 2008
Posts: 9
thomp:

The answer did display but still won't update.

For instance this is what it will tell me if I go back into the text box and physically re-enter the script after saving the .pdf to (2) different locations:

/C/Documents and Settings/TUNITUP/Desktop/GN4VP-1 VACUUM PUMP.pdf
/FPAMS007/Users$/TUNITUP/Projects/GN4VP-1 VACUUM PUMP.pdf

Also - instead of displaying '/FPAMS007/Users$/TUNITUP/Projects/GN4VP-1 VACUUM PUMP.pdf' how would you write the code to display the Windows Address 'F:\Projects\PDFPlotStamp.pdf' ?

Again I am trying to find the 'Document Properties | Description tab | Advanced | Location:' code because this does update correctly.

Thanks.