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

Code for changing printer settings

isaanderson
Registered: Aug 11 2008
Posts: 72
Answered

I constantly do print materials that are bigger than 8.5 x 11 but most of the time my clients request a PDF of those files to post on their websites or for emailing. However since most people do not know how to shrink the pdfs by changing their printer settings they often complain that the document does not fit in a 8.5" x 11" piece of paper. My question is if there is a script that I can embed somehow in the pdf using acrobat pro so it automatically shrinks down the document to fit in a letter size paper and it also rotates and centers the content on the page.

Please help me, I've been looking for hours inside the forums and can't find any information that relates to this topic.

Thanks in advance!

My Product Information:
Acrobat Pro 8.1.3, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes and No, Unforturnately you can't modify or preset the print settings for the general purpose print. This would really be a big help to document designers, but it's not possible.

However, you can place a print button on your PDF that will print using specific settings. You'll find a huge list of print settings, and some examples, in the PrintParams object in the JavaScript Reference.

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]

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

isaanderson
Registered: Aug 11 2008
Posts: 72
Thom, thanks for responding...

I looked at the Javascript Reference you mentioned and there was an example for shrinking documents. I just created a button and copied and pasted the code from the example into the javascript window in acrobat. It worked nicely!

Thanks for the link to the Javascript Reference. It's a great reference guide. It seems that will help me learn a lot and I did not even know if existed.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It is definatley the "must have" document for scripting Acrobat and PDF. Unfortunately most people find it a bit cryptic. Being a programming reference it doesn't provide much explaination, it's just raw data. The examples are really helpful though. You'll find all kinds of advanced and undocumented information in the samples;) I like reading it for fun.

You can find much friendlier video tutorials on every thing about PDF form scripting at www.pdfscripting.com

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]

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