Select printing paper based on pdf size
Select printing paper based on pdf size
Hi,
I wonder i can create flow if the overall image is less than 8"*10.5" then it would choose to print to 8.5"*11" paper but if it is a larger image it would set to print 11" * 17" paper using switch or pittstop pro server.
thank you.
I wonder i can create flow if the overall image is less than 8"*10.5" then it would choose to print to 8.5"*11" paper but if it is a larger image it would set to print 11" * 17" paper using switch or pittstop pro server.
thank you.
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Select printing paper based on pdf size
Sure you can. Switch's metadata can collect statistics about a job including PDF page size. You can route jobs using the connection line's "Condition with variables" with 2 conditions that check the page width and height are less than or equal to 612 and 792 respectively (8.5 x 11 inches in point units). If the page size is greater than that you would route to the other connection.
A couple of gotchas:
A couple of gotchas:
- Switch only collects stats about the 1st page in the PDF
- The units are in points not inches
- Be careful about rounding problems. Set the precision value to 0 or 2 so the page size values are consistently formatted
Re: Select printing paper based on pdf size
thank you for the quick response.
now i know that switch can assign different route based on size of paper but where i set the size of printing paper?
now i know that switch can assign different route based on size of paper but where i set the size of printing paper?
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Select printing paper based on pdf size
I gave the detail above. The variables are: [Stats.PageWidth:Precision="2"] and [Stats.PageHeight:Precision="2"]
Re: Select printing paper based on pdf size
Yes i understand that i can set the route depends on paper of the size.
But how and where can i make printer to print pdf on 11*17 size paper if its bigger than letter size pdf?
Thank you very much.
But how and where can i make printer to print pdf on 11*17 size paper if its bigger than letter size pdf?
Thank you very much.
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Select printing paper based on pdf size
Scale the page size with Pitstop, pdfToolbox, PDF Enhancer or an Acrobat script.
Re: Select printing paper based on pdf size




I thought i would be able to let switch automatically select those paper sizes and paper sources like what i would do manually in the picture.
Problem is if i set Yes for the 'Auto-choose paper source' in property. it would choose best fitting paper size for pdf so that is not always either letter or 11*17.
I want printer to choose only letter or 11*17 if its bigger than letter size.
Thank you
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Select printing paper based on pdf size
Switch has no built-in support for sending files to a printer via print driver.
Re: Select printing paper based on pdf size
okay
thank you for your time
thank you for your time
Re: Select printing paper based on pdf size
Hello,
you can do it using the "Execute command" and Ghostscript.
There is parameter -sPAPERSIZE, but I don't see parameter for Paper source.
you can do it using the "Execute command" and Ghostscript.
There is parameter -sPAPERSIZE, but I don't see parameter for Paper source.
Aleksander
Re: Select printing paper based on pdf size
can you show me screenshot of flow and property panel? I would very appreciate.
also, i wonder if i need to install something to learn ghost script on switch.
Thank you
also, i wonder if i need to install something to learn ghost script on switch.
Thank you
Re: Select printing paper based on pdf size
Hi,
flow might look like this

In Arguments line:Where "HPLaserJet" is name of your printer
Output: None
flow might look like this

In Arguments line:
Code: Select all
-sDEVICE=mswinpr2 -dBATCH -dNOPAUSE -dNoCancel -sPAPERSIZE=a3 -sOutputFile="%printer%HPLaserJet" "%1"
Output: None
Aleksander
Re: Select printing paper based on pdf size
Sorry.. forgot to tell you that switch is running on mac. do you know what should i have instead of "mswinpr2"
thank you
thank you
Re: Select printing paper based on pdf size
Unfortunately, I do not know mac.
See this page: http://www.gnu.org/software/ghostscript/devices.html
I suspect that you can use os2prn, or specified driver.
See this page: http://www.gnu.org/software/ghostscript/devices.html
I suspect that you can use os2prn, or specified driver.
Aleksander
Re: Select printing paper based on pdf size
thank you so much for your help. 
