Skip to main content
Participating Frequently
May 21, 2021
Answered

Expiry Date with Java Script possible?

  • May 21, 2021
  • 2 replies
  • 2845 views

Hello everyone, is it possible to use JavaScript to store an expiration date for a PDF, i.e. that it can no longer be opened after this date has expired? I would be very grateful for your help.

This topic has been closed for replies.
Correct answer JR Boulay

Sure, search "Expire PDF on a Specific Date" on this page:

https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

 

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
May 21, 2021

Sure, search "Expire PDF on a Specific Date" on this page:

https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

 

Acrobate du PDF, InDesigner et Photoshopographe
Legend
May 21, 2021

The user can turn off JavaScript. Many PDF viewers ignore JavaScript completely. So, "cannot be opened" is hardly a possibility if this is to have any more than vague advisory value.

Inspiring
May 21, 2021

Of course, even if that worked, you would have to open the PDF in order to run the Javascript. You want a Content Management System (CMS) or something like LiveCycle.