DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Print Design

Reply
 
Thread Tools Display Modes
Old 08-30-2006, 05:42 AM   #1
Maureen
Member
 
Join Date: Aug 2006
Posts: 7
Default Acrobat 7 - Manipulating a print button

I have put a print button on the 66th page of a 68 page document. When this button is clicked, it opens a print menu. If the user doesn't know to change the page range, it will default to print out the entire document. I would like to know how to have a print button that either defaults to preselected pages or just prints out these preselected pages without giving them a window?
Maureen is offline   Reply With Quote
Old 08-30-2006, 12:16 PM   #2
roaryg
Member
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 176
Default

I believe this could be programmed with a Javascript script attached to the button.
roaryg is offline   Reply With Quote
Old 08-31-2006, 05:16 AM   #3
Maureen
Member
 
Join Date: Aug 2006
Posts: 7
Default

I've heard that but I don't know Javascript
Maureen is offline   Reply With Quote
Old 09-01-2006, 05:04 AM   #4
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default JavaScript

Quote:
Originally Posted by Maureen View Post
I've heard that but I don't know Javascript
There are a great many JavaScript routines available for free on the web. Try searching with Google, and maybe you can find a free JavaScript routine for what you want.
dthomsen8 is offline   Reply With Quote
Old 09-01-2006, 05:07 AM   #5
Maureen
Member
 
Join Date: Aug 2006
Posts: 7
Default

Thanks - that's why I signed up for these threads. My searches have only shown me results for how to change the print selection if you want to print a pdf file. I haven't had any luck finding javascript for a print button
Maureen is offline   Reply With Quote
Old 09-01-2006, 01:56 PM   #6
Steve Rindsberg
Staff
 
Join Date: Nov 2004
Posts: 6,713
Default

Visit the User to User forum at www.adobe.com

Someone in one of the Acrobat sections there should be able to help or at least to tell you whether it's even possible.

Or try a google groups search on something like this:

javascript print acrobat wyss

(Max Wyss seems to answer a lot of questions about javascript in Acrobat)

   
__________________
Steve Rindsberg
====================
www.pptfaq.com
www.pptools.com
and stuff
Steve Rindsberg is offline   Reply With Quote
Old 09-05-2006, 10:58 AM   #7
roaryg
Member
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 176
Default

Here ya go:

http://www.planetpdf.com/developer/a...tentid=6873&ra

Found by typing "javascript pdf print" in google. Good luck!
roaryg is offline   Reply With Quote
Old 09-05-2006, 11:41 AM   #8
Maureen
Member
 
Join Date: Aug 2006
Posts: 7
Default

thank you!

Actually I already found this javascript. I was hoping to find one that would automatically print the 2 pages I needed printing without prompting the user to type them in.

But thank you for taking the time to help me!!
Maureen is offline   Reply With Quote
Old 09-05-2006, 12:45 PM   #9
roaryg
Member
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 176
Default

Quote:
Originally Posted by Maureen View Post

But thank you for taking the time to help me!!
No problem, I just happen to be working on pdf forms right now and the question is interesting. Found this in the planetpdf archives (search javascript print range):

You can make a button that will use the "this.print()" method to print each page or range of contiguous pages. For example, assume you form fields on page 3,4 and 6:

this.print({bUI: false, nStart:2 , nEnd:3 });
this.print({bUI: false, nStart:5 , nEnd:5 });

Note the page numbers are zero based for JavaScripts.
roaryg is offline   Reply With Quote
Old 09-05-2006, 01:02 PM   #10
Maureen
Member
 
Join Date: Aug 2006
Posts: 7
Default

When you say "zero-based" does that mean in the code 0=1, 1=2, etc.?
Maureen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Does Acrobat Print? RJ Emery General Publishing Topics 5 01-10-2006 03:07 PM
Acrobat RDR 5.1 No print dthomsen8 Print Production & Automation 14 12-15-2005 06:34 PM
Cute online button maker ktinkel Web Design 2 05-25-2005 05:47 PM
Acrobat 4.0 and Mac OS 9.2 Adrian Print Production & Automation 6 03-24-2005 12:32 AM


All times are GMT -8. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.