Write JavaScript Program to Protect PDFs

In Progress

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.

Skills: Javascript, PDF

See more: write your message, today in javascript, test my javascript, program requirements document, new features of java 1.5, new features in java 1.5, javascript today, i can write my name, help me write copy, enable copy in pdf, copy write your name, rendering program, enable java script, protect , pdf password, embedded program, java scrolling text, program protect, windows file locking, javascript week, show last modified time, javascript write display, java script embedded, java test program, write text attached

About the Employer:
( 23 reviews ) Aldgate, Australia

Project ID: #3984831

Awarded to:


hi, done please check pm. for sample. thanks

$80 USD in 1 day
(3 Reviews)

5 freelancers are bidding on average $124 for this job


Hi, I specialize in creating exactly this kind of custom-made scripts for PDF files. Please see my PM for more info...

$150 USD in 3 days
(8 Reviews)

Hi Andrew, Hope you are doing well. Please read PM for some queries and clarifications. Regards Kapil

$150 USD in 1 day
(4 Reviews)

We are Experienced professional team. 3 year experience in javascript. lets get started . thank you.

$100 USD in 5 days
(0 Reviews)

Hello, Good day, How are you. I would like to work for you on this project and have a long term relationship with you. You can see my rating and feedback by this you can have clear idea about my expertise. More

$139 USD in 3 days
(0 Reviews)