I want to print dynamic year using JavaScript, which works fine on the HTML documents, but when they are published for PDF, the year is not displaying.
I am using a software called MadCap Flare, which is a help file generation tool.
Below is my code that I have used.
<p>© <script type="text/javascript">document.write(new Date().getFullYear())</script><a class="copy" href="#" target="_blank">Abc</a>. Trademarks.</p>
I have referred to the below Stackoverflow question.
Shortest way to print current year in Javascript
It works perfectly fine when the HTML are tested on browsers, but they are not printing on PDF.