Print Button - JavaScript for specific actions
Copy link to clipboard
Copied
I am trying to figure out how to add a JavaScrpit for printing that will allow certain actions. The form is a preprinted color coordinated carbon copy type form, and employer wont accept regular white paper.
Print button that will do the folllwing actions:
-Copies: "5"
-Pages to page: "Current"
-Page Size & Handling: "Actual Size"
-Comments & Forms: "Form Fields Only"
**Also include a small picture to print that is uploaded on "Image Field" box
If not possible, I'll settle with just being able to print the "Image Field" box, when selecting "Form Field Only" type print.
Copy link to clipboard
Copied
I have figured out some coding, but could use help in the rest.
var pp = this.getPrintParams();
pp.NumCopies = 3;
pp.pageHandling = pp.constants.handling.actualsize;
var printRange = [];
printRange.push([0,0]); // print page 1
pp.printRange = printRange;
this.print(pp);
still need to add coding for selecting forms fields only and add picture.

