Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Expiry Date with Java Script possible?

Explorer ,
May 21, 2021 May 21, 2021

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
2.7K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
May 21, 2021 May 21, 2021
LATEST

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

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

 

Capture_404.png


Acrobate du PDF, InDesigner et Photoshopographe

View solution in original post

Translate
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
LEGEND ,
May 21, 2021 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.

Translate
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

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.

Translate
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
Community Expert ,
May 21, 2021 May 21, 2021
LATEST

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

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

 

Capture_404.png


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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