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

Javascript checking document use.

andrewevans73
Registered: Jul 24 2007
Posts: 6

I have created a form using Acrobat 7 Pro, Several people in the company need to add information over a period. The problem is that they often open the document, fill in their info (sometimes a substantial amount of typing). Then when they go to save the document they get an error because someone else is also using the document (as you can imagine an arguement follows as to who will loose their info). So is there any javascript, that can when the document is opened check to see if it it already open elsewhere, and if so throw an error, perhaps also telling who else has the document open.
Any help would be greatly appreciated.
Kind regards,
Andrew Evans.

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is a really, really bad methodology. You need to do something different. If you want a shared resource that people can use simultaneously then use a database or something else that's meant to be used this way. You could even do this from a PDF (i.e. DB access), but there is no way you can detect when a PDF is already open from inside Acrobat, or manage this process.

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