Hi All,
Can you help me to set the page size from letter to A4. Below is my javascript code that i am using:
var params = this.getPrintParams();
params.printerName="eDco pro";
params.interactive =params.constants.interactionLevel.silent;
this.print(params);
Also is there any way that i can use to print the document without opening it. Basically i am writing code for a applet that uses iText to create a pdf. I am reading the document from server and writing it temporarily on client machine. Above javascript is working fine to print but it is printing in Letter size and requires document to be opened at client.
Please help me i am stuck.
Thanks.
Mahesh
However, it's very typical for a printer to select the paper source based on paper size. And this is actually an option you can put in the PDF, i.e., select paper source based on size. So one option is for you to resize all your pages to A1.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script