Skip to main content
September 5, 2016
Answered

Ablaufdatum in PDF-Ausdrucke einfügen

  • September 5, 2016
  • 1 reply
  • 2160 views

Hallo Community,

ich würde gerne auf Ausdrucke von PDF-Dateien ein Ablaufdatum einfügen,

also bspw. im Footer "gedruckt am tt.mm.jjjj" - "gültig bis tt.mm.jjjj (+3 Tage ab Druckdatum)".

Ich benutze Acrobat XI Standard auf einem Win8 Rechner.

Danke schonmal,

Otto

btw, this is by far the WORST built forum i have ever seen!!!

"Changing" a language mixes the language with English and the chosen one.

"Overview" seems to be a Fremdwort here.

The whole site is a mixup between community, store and whatever could fit in ...

No offense meant, but maybe someone starts thinking about it.

This topic has been closed for replies.
Correct answer try67

No script, just Tools > Pages > Header & Footer


OK, you can't use that if you want to insert a future date.

To do that you would need to use a form field and a script.

Create a read-only, print-only text field and name it "PrintDate".

Now go to Tools - JavaScript - Set Document Actions and under the Will Print event enter this code:

var d = new Date();

d.setDate(d.getDate()+3);

this.getField("PrintDate").value = "document expires " + util.printd("dd.mmm.yyyy", d);

1 reply

September 7, 2016

Okay, this time in English...

I should insert an expiry date on PDF printouts, i. e., in the footer "printed on dd.mmm.yyyy" (<- no problem to insert this one!!!)

"document expires dd.mmm.yyyy (= printing date + 3 days)"  <- That is the question!

Thanks in advance,

Otto

try67
Community Expert
Community Expert
September 7, 2016

Do you have Adobe Acrobat? If so, which version?

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 7, 2016

No script, just Tools > Pages > Header & Footer


OK, you can't use that if you want to insert a future date.

To do that you would need to use a form field and a script.

Create a read-only, print-only text field and name it "PrintDate".

Now go to Tools - JavaScript - Set Document Actions and under the Will Print event enter this code:

var d = new Date();

d.setDate(d.getDate()+3);

this.getField("PrintDate").value = "document expires " + util.printd("dd.mmm.yyyy", d);