Center for Patient Care and Outcomes Research (PCOR)

EmailEmail    |   Bookmark Page Bookmark  |   RSS Feeds RSS  |   Print Page Print  

PRINTING FAQS

How do I print a PDF without Adobe Reader?
You can use GhostScript to convert PS/PDF files to many device formats. In this case, we want to convert a PDF file to one of the formats that our printer supports, such as PS:
prompt> gs -sDEVICE=psgray -sOutputFile=\|lp -dNOPAUSE -dBATCH file2print.pdf

For more information on GhostScript, especially the other device formats that it can convert PS/PDF files to, type:
prompt> gs -h

 

How can I view an .eps/.ps/.pdf file?
It's often helpful to view an .eps/.ps/.pdf on the screen before printing and perhaps avoid wasting paper. This can be done with the gsview command.

To view your file, type:
prompt> gsview FILE & where FILE is a graphics file of one of the following types: PS, Encapsulated PS or PDF.

Or, if you are using XEmacs and you are editing a .sas program that has created FILE with a GSASFILE statement, press F12 and you will be prompted for your choice of FILE in the minibuffer; when you have finished your selection press Return.

Note that there are also PDF-only viewers you might try for PDFs:
acroread, evince and xpdf.

Problems that you may experience with gsview:

1. gsview will complain about many PS files, particularly those generated by SAS. It's unclear whether this is a gsview bug or due to a bug in the
software that produced the PS file. The simplest work-around is to tell gsview to keep quiet. Under the Options menu, check the box next to Ignore DSC. Just telling gsview to not complain doesn't fix the problem though. gsview will display these "buggy" PS, but many of the buttons and keys will not function properly. Usually, anything that has to do with explicit page numbering will not work. The most useful keys under this circumstance are "r" for Redisplay, "+" for Next Page and "F6" for Fit Window.

2. When printing, gsview tries to guess what type of printer you have. Don't let it guess; check the box "PostScript printer" as that is what our copier supports.

For printing PS/PDF files to other types of printers, see How do I print a PDF without Adobe Reader?

 

How can I duplex/staple on the PCOR copier?
If you have a PS document, then the command for duplex, flipping left to right:
prompt> lp -c -o duplex=left FILE.ps

... flipping top to bottom:
prompt> lp -c -o duplex=top FILE.ps

... for stapling, there are a myriad of options (make sure that the copier has staples loaded and they are not jammed):

Placement Option
Top Left -o staple=tleft
Top Right -o staple=tright
Bottom Left -o staple=bleft
Bottom Right -o staple=bright
Two at Left -o staple=2atleft
Two at Right -o staple=2atright
Two at Top -o staple=2attop
Two at Bottom -o staple=2atbottom
Two at Center -o staple=2atcenter

Of course, you can match any duplex type with any staple type that you want.

For PDF documents, use Adobe Reader (acroread). Open the Print window, in the upper right you will see a dialog box for the print command which defaults to "/usr/bin/lp -c".  In that dialog, add the necessary clauses, e.g. "/usr/bin/lp -c -o duplex=left".

For more information about all of the options available, see below:

8.1 Device Options
(For quick reference, please use man page command, which is "man c4500".)

File Type: Specifies the type of input file.

Text file -o text

PostScript file -o ps

Adobe PDF file -o pdf

Others -o nofilter

Note: Use of file type options will override the result of this utility's automatic file type detection.

Filter Banner Page: Specifies the use of a customized banner page that includes the information containing the user name, host computer name, print job name (file name), date, time stamp and version of the UNIX Printing Solution utility. The filter banner page is off by default until specified by this option. If there are multiple input files on the command line, each will be printed with a filter banner page before it.

(Filter Banner Page) -o fbanner

Note: no filter banner page is printed if job type is specified.

User ID: Specifies the User ID of a print job. A legal User ID is a string of up to 8 alphanumeric characters (a-z, A-Z, 0-9), with no space in between.

(USERID) -o userid=(USERID)

User Code: Specifies the User Code of a print job. Enter a user code using up to 8 digits(0-9). A user code identifies a group of users and allows you to check the number of sheets printed under each code with SmartDeviceMonitor. User Code can be set up as a default value during the installation of UNIX filter script or use rpconfig command for setup after UNIX filter installation is completed.

Password: Specifies the password of a print job. A legal password is a 4-digit number.

(PASSWORD) -o password=(PASSWORD)


User IDs longer than 8 characters and passwords longer than 4 characters will be truncated.

Job Type: Specifies the type of a print job.

Normal (default) (no option needed)

Sample Print -o jobtype=sample -o userid=(USERID)

Locked Print -o jobtype=locked -o userid=(USERID)

-o password=(PASSWORD)

Document Server -o jobtype=docserver -o filename=(FILENAME)

-o password=(PASSWORD) -o username=(USERNAME)

Hold Print -o jobtype=hold -o userid=(USERID)
-o filename=(FILENAME)

Stored Print -o jobtype=stored -o userid=(USERID)
-o filename=(FILENAME) -o password=(PASSWORD)

Store and Print -o jobtype=storeprint -o userid=(USERID)
-o filename=(FILENAME) -o password=(PASSWORD)

Note: 'filename' option is only available for Hold Print and Stored Print. It allows user to enter a file name using up to 16 alphanumeric (a-z, A-Z, 0-9) characters (optional). It distinguishes a file from other files. Since it is used until another file name is typed, be careful not to use secret codes like your password. It identifies individual files under 'Document Name' in the job history with SmartDeviceMonitor.

Paper Selection/Cover Pages Selection (Text Format Only)

Front Cover/LeaveBlank -o jobtype=frontcover
-o coversheet=BLANK
-o covertray=TRAY#
-o inputtray=TRAY#
-o itray=auto_off

Front Cover/One Side -o jobtype=frontcover
-o coversheet=SIMPLEXCOPY
-o covertray=TRAY#
-o inputtray=TRAY#
-o itray=auto_off

Front Cover/Both Sides -o jobtype=frontcover
-o coversheet=DUPLEXCOPY
-o duplex=(top/left)
-o covertray=TRAY#
-o inputtray=TRAY#
-o itray=auto_off

Note: Trays available for cover sheet are tray1 through tray4.

User Slip Sheet/Leave Blank
-o jobtype=userslipsheet
-o sliptray=TRAY#
-o inputtray=TRAY#
-o slipsheet=BLANK
-o itray=auto_off

User Slip Sheet/Print on Slip sheet
-o jobtype=userslipsheet
-o sliptray=TRAY#
-o inputtray=TRAY#
-o slipsheet=COPY
-o itray=auto_off

Note: Trays available for cover sheet are tray1 through tray4.

Orientation: Specifies print orientation (text input files only)

Portrait (default) -o portrait

Landscape -o landscape

Rotated Portrait -o rportrait

Rotated Landscape -o rlandscape

Note: We are currently supporting landscape orientation for PostScript files.
 

Number of copies: Specifies the number of copies per file to be printed. The number of copies command varies according the Operation systems. The print commands are shown below.

IBM AIX 4.x, 5.x -o nn=#

Red Hat Linux 7.0 or above -Z nn=#

Sun Solaris, HP-UX and SCO OpenServer -n#


Collate: specifies whether the print output is collated

Off(default) -o collate=off

On -o collate=on


Resolution:

600 dpi (default) -o resolution=600

webmaster@mcw.edu
© 2014 Medical College of Wisconsin
Page Updated 07/14/2014