HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › display current date every time the PDF is opened › Re: Re: display current date every time the PDF is opened
We successfully prototyped the feature and were able to auto-insert the date info into a form field. Unfortunately we did not enabled the feature in the just-released v380fx2, as there was not enough time to extensively test it. It is going to be available with the next beta-release of PD4ML.
FYI: we achieved that with
[language=Java:11vnygw9]this.getField(“i1”).value = new Date().toDateString()[/language:11vnygw9]
JavaScript code, assigned to OpenAction of PDF.
The source HTML document supposed to define:
[language=xml:11vnygw9][/language:11vnygw9]
PD4ML must explicitly enable PDF form output:
[language=java:11vnygw9]pd4ml.generatePdfForms(true, null);[/language:11vnygw9]