Copy link to clipboard
Copied
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.
Sure, search "Expire PDF on a Specific Date" on this page:
https://www.pdfscripting.com/public/Document-Level-Scripts.cfm
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Sure, search "Expire PDF on a Specific Date" on this page:
https://www.pdfscripting.com/public/Document-Level-Scripts.cfm