Copy link to clipboard
Copied
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.
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);
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Do you have Adobe Acrobat? If so, which version?
Copy link to clipboard
Copied
Adobe Acrobat XI
Copy link to clipboard
Copied
OK. Are you using a script to insert the current date? If so, post it here.
[NB. I'm moving your question from the Reader forum to one of the Acrobat forums]
Copy link to clipboard
Copied
No script, just Tools > Pages > Header & Footer
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
Create a read-only, print-only text field and name it "PrintDate".
Where can I create this Text Field?
Copy link to clipboard
Copied
You can add fields in Form Edit mode, which you can reach via Tools - Forms - Edit...
Copy link to clipboard
Copied
It worked, thanks a lot!
Copy link to clipboard
Copied
Hello try67,
how can i make this field some sort of default, that is always available to insert into pdfs?
Thanks,
Otto
Find more inspiration, events, and resources on the new Adobe Community
Explore Now