How is it possible to add an expiration date on a pDF file? like ebook
what kind of tools or Plug-in do I have to use or buy?
1. Open the document in Acrobat
2. Save it as <original_name>_x (x stands for "expirable")
>>>> THIS is highly important, becuase after you render the
>>>> document expirable, even you won't be able to re-open
>>>> it once the expiry date is due and thereafter!!
3. In the menu bar, click: Tools-->JavaScript-->Document JavaScripts...
a. In the 'Script Name:' box, write: Expiry
b. Click 'Add...'
c. Delete the editor's window contents 'function....'
d. Write the following code:
////Start of Code
// Get the Expiry Date
var ED = util.scand("dd/mm/yyyy","15/11/2005"); // Expiration date is Nov. 15th, 2005. Change this date to suit your need
// Get Today's Date
var TD = new Date();
// Validate and take measures!
var diff = (((((ED.valueOf() - TD.valueOf()) / 1000) / 60) / 60) / 24); // Days difference
if (diff < 1) {
// Now the drastic thing...
DontSave = true
this.closeDoc(DontSave)
};
////End of Code
4. In the menu bar, click: File-->Document Security...
a. Select 'Acrobat Standard Security'
b. Check 'Password Required to Change...'
c. Write a password in the 'Master Password' cell
d. Check all the 'Permissions' boxes
e. Click 'OK'
f. Re-enter your password as requested
5. In the menu bar, click: File-->Save As...
Make sure (!) that the filename is (still) <original_name>_x, then click 'Save'
You now keep <original_name> to yourself and deliver only <original_name>_x copies.
Regards, Doron
-Mike Nitabach
In other words, the only security it provides is in relation to people
who are either too indifferent or too stupid to figure this out.
Isn't that true of all security schemes?
Of course, but you have to be *really* indifferent or *really* stupid to be thwarted by this scheme. In my opinion, this sort of scheme is so easy to thwart, that it does more harm than good to suggest it someone who is looking for even a de minimus level of security.
In contrast, you need both a very strong desire and a significant amount of intelligence and willingness to break the law to overcome a legitimate digital rights management system. For this reason, these are the solutions that it makes sense to suggest.
--Mike Nitabach
To enhance it, I added a textbox field called "blank1" to each page of the PDF file. This field is solid white background to block out the main content of the file. By default, it's set visible.
If the file is determined by the script to be not expired, then the field is hidden, enabling the user to view the document. If JavaScript is disabled, the user gets a blank page. The field can be set to say something like "JavaScript must be enabled to view this document".