Not explicitly, no.  You could do various things to make them significantly less useful after a certain date however:

 

Put everything on the page in an ‘icon-only’ button that is hidden by default.  Reveal it in script after checking the date.  Disabling _javascript_ disables the PDF, but it’s not hard to change the field or JS in Acrobat Pro.  You could build them with a password and disable the “modify document” abilities… but iText can be modified to strip out any security if you have the “open” password, especially the “blank” password.

 

You could do similar things with layers or page templates, but the workaround is the same.

 

Acrobat won’t let you do much of anything with an LCD form, but iText can’t build them (and neither can anyone else outside Adobe).

 

You also can’t actually damage the PDF file (in Reader), so if someone sets their computer’s clock back, they can get around anything you build in.

 

Now if you had some kind of custom Acrobat/Reader plug-in, you could do just about anything you wanted… but iText would have to be modified to support it, and anyone viewing your file would have to download your plugin.

 

--Mark Storer

  Senior Software Engineer

  Cardiff Software

 

#include <disclaimer>

typdef std::disclaimer<Cardiff> DisCard;

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Buchanan, Trevor
Sent: Friday, April 28, 2006 2:00 PM
To: [email protected]
Subject: [iText-questions] PDF Time Bomb

 

Hi,

 

Is there any way to program pdf files to self destruct after a specified time with itext or any other java api?

 

Thanks,

 

Trevor

 

 

 

Reply via email to