Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Not possible with Acrobat JavaScript. Use a DRM solution for this.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now