Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Expiry Date with Java Script possible?

Explorer ,
May 21, 2021 May 21, 2021

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.

TOPICS
How to, JavaScript, Security digital signatures and esignatures

Views

338

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , May 21, 2021 May 21, 2021
Sure, search "Expire PDF on a Specific Date" on this page: https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

Likes

Translate

Translate
LEGEND ,
May 21, 2021 May 21, 2021

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 21, 2021 May 21, 2021

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 21, 2021 May 21, 2021

Copy link to clipboard

Copied

LATEST

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

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

 

Capture_404.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines