Copy link to clipboard
Copied
- I have one requirement where the form should be printed duplex or simplex based on condition of country.
I found one code -
var pp = this.getPrintParams(); pp.DuplexType = pp.constants.duplexTypes.DuplexFlipLongEdge; this.print(pp);
Not sure how to use this for the requirement and where to write the code i.e in which event it should be written. Any help or hint is appreciated
Copy link to clipboard
Copied
You'd need to add a button to the PDF, which has code like this (of course, the code would need to check the country, to set the options right). You cannot affect what happens if the user ignores your button and prints another way.