printing pdf from browser via javascript
I have a product that opens up html documents in a new tab on the browser and then sends a simple javascript command to print the document.
We are looking to move away from this approach, and would like to generate pdf's that then automatically print out.
So this question is simply part of a scoping exercise, and apologies if I am asking in the wrong place.
So,
1) Is it possible to embed some basic Javascript into a pdf template that we have automatically filled in, so that when the document is displayed in a browser, it automatically sends the print command to the browser?
And if so
2) Is it possible for us to attach (merge?) 2 or 3 product sheets to this generated template, so that with one print command I can print out the completed template and any required product sheets rather than having to open X tabs, one for the template and one for each product sheet that is required.
Thanks
