Setting an expiration date on Word and PDF documents

Is there a way to set expiration dates on these two file formats? We are trying to do something like these two articles:


How to set an expiration date so once that date passes the PDF content can't be viewed? [A-PDF.com]

and

Redirecting

It appears the first link is an actual program that allows for it for PDF, so I know that it is possible to do so.

Thank you very much!!

Hi Vlad,


Thanks for contacting support.

We have an API named Aspose.Pdf for .NET which provides the feature to create as well as manipulate existing PDF files. It also offers the requested feature. Please visit the following link for further details on How to set PDF expiry date

Thank you but that is not a full proof method of setting an expiry date. The user can disable JavaScript and also change their computer time to make this not work at all. Is there another solution Aspose has? Thank you.

oxcyonDev:
Thank you but that is not a full proof method of setting an expiry date. The user can disable JavaScript and also change their computer time to make this not work at all. Is there another solution Aspose has? Thank you.
Hi Vlad,

Thanks for sharing the details.

Currently our API supports earlier shared solution. However I am in coordination with product team to figure out some other solution and as soon as we have some further updates, we will let you know.

We are sorry for this inconvenience.

Ok thank you. What about Word Documents in Aspose Word? I only have an answer for the PDF portion of my question.


Thank you.
oxcyonDev:
Ok thank you. What about Word Documents in Aspose Word? I only have an answer for the PDF portion of my question.

Thank you.
Hi Vlad,

Thanks for your inquiry. I am afraid, there is no fool proof way to implement this in document. Please visit the following threads for details:

http://answers.google.com/answers/threadview?id=358136
http://answers.microsoft.com/en-us/office/forum/office_2010-word/make-word-docx-expire/89250668-7775-43ac-94c0-3a3672098479?auth=1

macropod:
An alternative approach would be to use a field code in the page header, coded along the lines of:
{IF{DATE \@ YYYYMMDD}> 20130531 "*" {IF{={DATE \@ YYYYMMDD}-20130501 \# 0}< 29 "You have {={DATE \@ YYYYMMDD}-20130501 \# 0} days remaining" ""}}
where the * is the anchor point for an 'expired' image formatted as 'in front of text' or 'behind text'. That image could be sized to cover a large portion of the page. Anything the user does to cause the document fields to update (eg a print preview or print) will cause the field to calculate and, if appropriate, display either message. Although it will still be printed behind whatever is in the body of the document, the effect can make such a document all but unusable (especially if the 'expired' notice has a black background).
As coded, the field is designed to work with whole months - working with part-months would necessitate much more complex field coding - and will give up to 28 days' expiry notice.

If the document is protected using Aspose.Words, customer can't delete field codes etc

Best regards,