viewprint(1)
NAME
viewprint − print AnswerBook documents using lp
SYNOPSIS
viewprint −P printer | −f file [ −# ncopies ] [ −p pages ] [ −R ] [ −c card-catalog-file ] document-name
DESCRIPTION
viewprint is a utility used by docviewer(1) to print selected pages of AnswerBook documents. viewprint uses the AnswerBook "card catalog" mechanism to locate the PostScript files corresponding to the specified document document-name, and prints these files using lp(1).
OpenWindows users do not typically need to use viewprint. It is automatically invoked by docviewer as needed.
OPTIONS
−P printer
Send document to printer
−f filename
Send document to filename (instead of printer)
−# ncopies
Print ncopies copies
−p pages
Specify page numbers of pages to print. pages can be a single page number, or a page range of the form first-last
−R Reverse the order of pages (last page first)
−c card-catalog
Specify the name of the card catalog file used to locate AnswerBooks. See ab_cardcatalog(4) for more information.
ENVIRONMENT
AB_CARDCATALOG
Specify the name of the card catalog file used to locate AnswerBooks. See ab_cardcatalog(4) for more information.
SEE ALSO
docviewer(1), lp(1), ab_cardcatalog(4)
DIAGNOSTICS
viewprint prints an error message on failure and returns a non-zero exit status.
NOTES
viewprint assumes the printer is PostScript-capable. In addition, most AnswerBook documents are typeset using the Palatino font, and will not print correctly on a printer that does not support that font.
PostScript is a trademark of Adobe Systems Incorporated.
AnswerBook is a trademark of Sun Microsystems, Inc., licensed to SunSoft, Inc.
SunOS 5.6 — Last change: 18 November 1993