Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Printing some copies of ine form via javascript/formcalc


Level 2

How can be printed two or more copies of one form or one body page via source code, i mean, via javascript or formcalc languages?

In which event must be inserted source code?

Which is exactly the source code?

I'm trying to do it, but I'm not reaching the way to do it

2 Replies


Level 7
The syntax of the print command is:

$host.print( BOOLEAN param1, INTEGER param2, INTEGER param3, BOOLEAN param4,

BOOLEAN param5, BOOLEAN param6, BOOLEAN param7, BOOLEAN param8 )

You need to change parameter 2 to the zero based start page number as a string, parameter 3 to the zero based page number as a string, and parameter 7 to 1 to use the values of parameter 2 and 3.

So if you have a 25 page PDF and you want a button to print pages 4 and 5 you would change the default code to:

print(0, 3, 4, 0, 0, 0, 1, 0)

More information is contained in the "Scripting Reference" under LiveCycle Designer's "Help" menu.


Former Community Member
But if you want to print all the document and copies of several pages, I mean, to set parameters like you do in the print dialog box but with javascript or formcal code