Skip to main content
adalp51256739
Participant
February 27, 2018
Answered

Set expiration date to a document

  • February 27, 2018
  • 1 reply
  • 1813 views

Hello

I was wondering whether you can set an expiration date on a pdf document, but I need the document just stop displaying it´s content without any warning and without any text indicating that the document is protected or encrypted, if anyone can do that, I´ll appreciate it very much!

Best regards

    This topic has been closed for replies.
    Correct answer try67

    The only way to do it securely is with DRM technology, which is very expensive.

    A script can do something similar, but there are many ways around it (like changing the computer time or disabling JavaScript in the application before opening the file)...

    1 reply

    try67
    Community Expert
    try67Community ExpertCorrect answer
    Community Expert
    February 27, 2018

    The only way to do it securely is with DRM technology, which is very expensive.

    A script can do something similar, but there are many ways around it (like changing the computer time or disabling JavaScript in the application before opening the file)...

    adalp51256739
    Participant
    February 28, 2018

    Can you explain me how to do it with a script?

    Thanks!

    try67
    Community Expert
    Community Expert
    February 28, 2018

    You would need to create a Date object with today's date and then compare it to another Date object with the hard-coded expiration date.

    If the current date's value is larger than the expiration date, close the file.

    If you're interested in me writing this script for you (for a fee), feel free to contact me privately at try6767 at gmail.com.