Write JavaScript Program to Protect PDFs

  • Status Closed
  • Budget N/A
  • Total Bids 5

Project Description

I sell PDF downloads on my site [url removed, login to view] and want to restrict buyers to only being able to open a PDF for 5 days after they first open it.

Each time the user opens the PDF, he should be prompted for a password.

I want a program that will enable me to add a restriction to PDFs, then allow me to save the modified file under a new name.

I believe this can be done with Java Script. The script should travel with the PDF, embedded in the PDF itself.

The script would start counting when the user opens the PDF file for the first time. When 5 days have elapsed since first opening, the password should become invalid. The PDF won't render or become usable in any other way. Instead it should display a message about password expiration, prevent user from scrolling and prevent text/graphics from rendering.

The expiration counter should start when user first opens the file, and expire 5 days after that moment.

In addition the following features should apply: ??1. The expiration counter for each protected PDF should be embedded within the document, and once the document expires no copies made of it will open.

?2. When the protected document is set to expire after 5 days from first opening and if the user makes a copy after 3 days, both the copy and the original will only open for 2 more days each. So the script will check if it's been 5 days since the file was first opened

3. The script should work on both Windows and Macs.

To clarify the requirements:

The password must last for only 5 days after the file is first opened. If the user downloads the file today, but doesn't open it until next week, then the 5 days counting starts from next week.

The password locking must travel with the file. So that no one can copy the file and keep it alive by opening the copies.

Attached is a sample file to which you can test your method in order to show me your ability to do this job.

The deliverable for this job is a simple program that will enable me to add the modification to PDFs as described above, then allow me to save the modified file under a new name.

If you can help, please work your magic on the file in the attachment so I can see what you can do.

Get free quotes for a project like this
Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online