Can anybody explain how to a design a script so that each page should contain the contents on both sides.
The current print mode is set to DUPLEX double-sided print, long-edge binding and a new page is started. A form page defined with DUPLEX is always printed on the front of the page, never on the back of the page. If the next form page contains the attribute value DEFAULT, it is output on the back of the page.
in page setting of the script, Select your page and set the print mode as 'D' ( Duplex printing)
Go to SPAD , take output devices .
Choose your output device , double click
take the output attributes.
Give the print mode as Duplex.
Your printer also should be set for the duplex mode.
Check this link for more details.