Skip to main content
haow84654262
Participant
June 27, 2016
Question

How to set a dateline for PDF file

  • June 27, 2016
  • 2 replies
  • 361 views

Hi,

If I want to set a dateline for a pdf file, how can make it come true?!

For example, I set a date(say 1st July) so users can only open this pdf file after 1st July.

                      Then I set another day(say 31st July) so users cannot open this file after 31st July.

How can I make it? By using Javascript?

Thanks

This topic has been closed for replies.

2 replies

Legend
June 27, 2016

You can do it using JavaScript. However, the protection would be very weak, and could easily overcome.

One approach would be placing a cover field over every page of the document, and have a pageOpen script on the first page (usually the page at which the document opens), which checks for the date range, and hides the cover fields if things are OK. In case of a dumb PDF viewer, the cover fields won't hide, and the document would not become visible.

Bernd Alheit
Community Expert
Community Expert
June 27, 2016

Not possible with Acrobat JavaScript. Use a DRM solution for this.