Skip to main content
NT17-xAJy2o
Participant
August 8, 2017
Answered

How can I keep Microsoft Word's PrintDate field code from becoming plain text when converting my document to a pdf?

  • August 8, 2017
  • 1 reply
  • 1372 views

I have Adobe Acrobat Pro XI and Microsoft Word 2010.  In my Microsoft Word document, I have a field code to print the date the document was last printed ("PrintDate").  When I print my Word version of the document, every paper copy shows the date that copy came off the printer.  However, when I convert my Word document to a pdf, the field code becomes static text with the date that I converted the document to a pdf.  Any subsequent printing of the pdf copy will always just show the date the pdf version of the document was created, instead of the date the copy came off the printer.

I know I can create the pdf document without the PrintDate field code, insert a text field, and then use "JavaScript | Set Document Actions | Document Will Print" to make that text field operate like Word's PrintDate field code, but I'm using the Word document as a blank template for others to fill out and then they create pdf documents from it.  It would be simpler to not have to leave instructions for everyone on how to insert the javascript and, instead, have it part of the blank Word template.  I honestly don't understand why Adobe doesn't just convert the field code to javascript automatically, which brings me to my question...

Is there a way to convert the Word document to a pdf, but retain dynamic field codes, such as PrintDate and SaveDate?

This topic has been closed for replies.
Correct answer try67

No, there's currently no way of doing it automatically. You need to re-create the field and then add the JS code you mentioned to achieve a similar effect.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 8, 2017

No, there's currently no way of doing it automatically. You need to re-create the field and then add the JS code you mentioned to achieve a similar effect.