Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

print variable content

Avatar

Former Community Member
Dynamic PDF wit one text field (Textfeld1) and one Print button.

The Print button executes following printscript:



for (var i=1; i<=3; i++) {

Textfeld1.rawValue = ("number " + i);

xfa.layout.relayout();

xfa.form.recalculate;

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);

};



The printer prints three pages, but on each of these the value of the textfield is "number 3".
0 Replies