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

"PDF was opened" server notification

przemhb
Registered: Nov 12 2009
Posts: 6

Hi!

I am wondering how to prepare a PDF file which would silently notify my server that someone has open it?

What do you suggest?
--
regards,
przemhb.

My Product Information:
Acrobat Standard 9.2, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can embed a script into the file that does something like change the value of a field in a DB, or sends some sort of HTTP request when the file is opened.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

przemhb
Registered: Nov 12 2009
Posts: 6
I even tried to use submitForm() to send PDF file name, but it ended with called web page open inside Acrobat.

I must say I do not have experience in Acrobat's JavaScript and maybe there's a way to do this better. On the server side I can do anything as I am it's administrator, but I do not know how to send data to the server in a silent and robust way.
--
regards,
przemhb.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Can't you place some sort of listener or monitor on the server-side that let's you know when a file has been opened by any of the users? I'm sure it's possible.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

przemhb
Registered: Nov 12 2009
Posts: 6
Server side is not a problem. I can take a look at Apache's logs to see if there was a try to access the server.

The problem is that I do not know how to do it in Acrobat's JavaScript in an way that wouldn't be noticed by a person who opens PDF (or at least i a way that wouldn't open a page in Acrobat).