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

How to set a dateline for PDF file

New Here ,
Jun 26, 2016 Jun 26, 2016

Hi,

If I want to set a dateline for a pdf file, how can make it come true?!

For example, I set a date(say 1st July) so users can only open this pdf file after 1st July.

                      Then I set another day(say 31st July) so users cannot open this file after 31st July.

How can I make it? By using Javascript?

Thanks

TOPICS
Acrobat SDK and JavaScript
326
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 ,
Jun 26, 2016 Jun 26, 2016

Not possible with Acrobat JavaScript. Use a DRM solution for this.

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
Advocate ,
Jun 26, 2016 Jun 26, 2016
LATEST

You can do it using JavaScript. However, the protection would be very weak, and could easily overcome.

One approach would be placing a cover field over every page of the document, and have a pageOpen script on the first page (usually the page at which the document opens), which checks for the date range, and hides the cover fields if things are OK. In case of a dumb PDF viewer, the cover fields won't hide, and the document would not become visible.

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