Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Ablaufdatum in PDF-Ausdrucke einfügen

Guest
Sep 05, 2016 Sep 05, 2016

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.

TOPICS
Acrobat SDK and JavaScript
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 07, 2016 Sep 07, 2016

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);

Translate
Guest
Sep 07, 2016 Sep 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 07, 2016 Sep 07, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2016 Sep 07, 2016

Adobe Acrobat XI

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 07, 2016 Sep 07, 2016

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]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2016 Sep 07, 2016

No script, just Tools > Pages > Header & Footer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 07, 2016 Sep 07, 2016

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2016 Sep 07, 2016

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

Where can I create this Text Field?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 07, 2016 Sep 07, 2016

You can add fields in Form Edit mode, which you can reach via Tools - Forms - Edit...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2016 Sep 07, 2016

It worked, thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 19, 2016 Sep 19, 2016
LATEST

Hello try67,

how can i make this field some sort of default, that is always available to insert into pdfs?

Thanks,

Otto

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines