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

hit count for pdf files

Nita
Registered: Jan 2 2007
Posts: 10

Is there a easy way of counting the hits for pdf files? On my website I have lot of PDF files as it requires no maintenance at all. However I think this will reduce the hitcount to the website. Any suggestions/ideas?
Thanks.
Nita

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Try this:

Note: JavaScript for mouse up button action:

if (global.nagCount != null)
global.nagCount = 0



Note: Document Level Javascript (name = nag)

if (global.nagCount == null) { // Does nagCount exist?
global.nagCount = 1 // No: create it
global.setPersistent("nagCount", true)
}
else { // Otherwise: increment it
global.nagCount++
}

if (global.nagCount > 2) { // nagCount greater than 2?
// Yes: display alert
app.alert("You haven’t paid for this document.\n Pay me.")
}

Note: Change the entry app.alert to a URL to store nagCount

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.