These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Save default print settings in a form

spiced1
Registered: Dec 1 2006
Posts: 9
Answered

I'm using Acrobat 7 is there a way to save the default print settings in the forms I create? If the page handling is not set properly portions of the form may not print accuretely, so I want to make sure that the correct setting is selected before they print the form.

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Back in the Acrobat 7 days lots of people were asking about this, so they added it in Acrobat 8. But there really didn't add a huge number of parameters. Probably the best way to make sure it prints exactly the way you want is to add a print button that uses the "PrintParams" object in JavaScript to set things up exactly the way you want.

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]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

spiced1
Registered: Dec 1 2006
Posts: 9
Hi Thom, thanks for the quick response. I tried the following;
// Set Default pageHandling to "Fit to printer margins"
var pp = this.getPrintParams();
pp.pageHandling = pp.constats.handling.fit;
this.print(pp);

Is there specific location where it should be in the script?
Darrel
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Put it on a print button and let the user know that if they don't use the button to print it may not print correcty.

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]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

spiced1
Registered: Dec 1 2006
Posts: 9
Thanks Thom that did the trick.

Darrel