Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Distributed Print Service User's Guide: HP 9000 Computers > Chapter 2 Basic Printing Tasks

Specifying Attributes for HPDPS Print Jobs

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Quite often, the characteristics, or attributes, of print jobs differ from job to job. You may have a particularly large job that requires printing on two sides. You may have other jobs that require rotation of the printing orientation or multiple copies. You may also have jobs that require a combination of these things. You can specify attributes for your jobs and documents by specifying an attribute and a value, referred to as an attribute value pair. For a complete list of attributes, see the manpages for attributes that belong to each HPDPS object. See “Getting Help for HPDPS Commands ” earlier for a list of these manpages or enter:

man pd_att

Examples of some of these attributes are:

  • copy-count (number of document copies)

  • sides (double or single-sided copies)

  • content-orientation (landscape or portrait layout)

  • document-format (type of format)

  • number-up (number of images on a page)

  • results-profile (includes number of copies of a job)

  • input-tray-select (specifying which printer tray to use)

To enter an attribute value pair, you use the -x attribute flag. For example, to print three copies of File1, enter:

pdpr -x "copy-count=3" File1

If you want to specify several attributes and their values, the following example illustrates how:

pdpr -x "copy-count=3 sides=2" File1

The above command specifies three copies with two-sided printing.

NOTE: For consistency in examples, double quotation marks are shown around a single attribute and value pair, even though they are required only for multiple attribute and value pairs.

Some attributes have additional flags that can be used to substitute for the attribute name. For example, to print three copies of File1 you can also use -n CopyCount flag and its value:

pdpr -n 3 File1

Refer to Chapter 3 “Command Reference ” for a complete description of all flags and more information on attribute value pairs.

NOTE: The default attribute values described in the following tasks are the values provided with HPDPS. Be aware that these defaults may have been modified by your print administrator for your distributed print environment.

Specifying the Number of Copies

Use -n CopyCount or -x copy-count=CopyCount with the pdpr command to specify the number of document copies in a job that you want to print. If you do not specify a copy count for your job, HPDPS prints the default number of copies. For examples, see the previous section.

Specifying Two-Sided Print Jobs

Use -x sides=2 with the pdpr command to specify two-sided (duplexed) printing for your job. Duplexed jobs print on both sides of the paper such that the top of each side is at the same edge of the paper. If you do not specify the sides attribute, HPDPS applies the default value for this attribute.

To submit file File1 to the default logical printer and specify duplexed printing, enter:

pdpr -x "sides=2" File1

Specifying the Page Orientation

Use -x content-orientation=OrientationValue with the pdpr command to specify the page orientation for your job. The two most common page orientations are portrait and landscape. Portrait orientation has the short edges of the printed page as the top and bottom with the long edges as the sides. Landscape orientation rotates the page 90 degrees so that the long edges of the page are at the top and bottom. If you do not specify the content-orientation attribute, HPDPS prints your job in portrait orientation. To submit the file File1 to the default logical printer and specify landscape orientation, enter:

pdpr -x "content-orientation=landscape" File1

Specifying the Document Format for a Job

Use -x document-format=Format with the pdpr command to specify the document format of your job. HPDPS accepts jobs in different document formats such as PostScript, PCL, and ASCII. If you do not specify the document format of the job when you submit the print request, HPDPS automatically tries to determine the format and process the request accordingly. This saves you time when entering print commands from the command line. It is also an advantage if you are not sure of the data format of the job. There can be times when you need to explicitly tell HPDPS the document format of your job. If HPDPS cannot determine the document format, it treats the file as ASCII data and the printed results may not be acceptable. In such cases, you should specify the document format.

For example, to submit file PSFile2 to the default logical printer and specify the document format PostScript, enter:

pdpr -x "document-format=ps" PSFile2

Specifying Number of Images on a Page

Use -x number-up=NumberOfImages to specify the number of images on a page. The value for NumberOfImages can be 1, 2, 3, or 4.

For example, to print File1 with an image displaying on each half of a page for a total of two images per page, enter:

pdpr -x "number-up=2" File1

Printing Multiple Documents in a Single Job

To print jobs that contain more than one document, you can either specify the name of each document with the pdpr command, or, you can create a reference file that lists each document.

Using the pdpr Command

To print multiple documents in one job, list each of the document file names as arguments of the pdpr command. All document files in the job must have the same attributes or HPDPS will reject the job. For example, they must have the same data format such as ASCII or PostScript. Specify any document attributes, such as sides=2 or number-up=4 before the list of file names.

The following examples show how you can specify multiple files with a single pdpr command.

To submit the files File1 and File2 to the default logical printer, enter:

pdpr File1 File2

To submit the documents File1 and File2 to the default logical printer and specify three copies of each document with duplexed printing, enter:

pdpr -x "copy-count=3 sides=2" File1 File2

In the above example, HPDPS prints three copies of File1 followed by three of File2. As an alternative, to print multiple copies of the same job, you can use the job-copies component of the results-profile job attribute. So, to submit a job that prints a single copy of File3 and File4 and then prints the job again, enter:

pdpr -x "results-profile=:::2:" File3 File4

Here, results-profile is a complex attribute, that is, one that has multiple values. It contains the following components:

  • delivery-method

  • results-set-comment

  • delivery-address

  • job-copies

  • output-bin

In the example above, the components are separated by colons. See "Complex Attributes Using Colons" in Chapter 3 for rules on colon syntax. See HP Distributed Print Service Administration Guide or the manpage pd_att_job(5) for details on results-profile.

Using a Reference File

You can use a reference file that contains a list of the documents you want to print with the pdpr command. For example,

pdpr -x "document-type=file-reference" myref

submits the reference file, myref, and prints each document listed within it. Each document within myref must be on a separate line.

Specifying a Medium for a Job

To specify a particular medium to print, you can specify a value for input-tray-select, such as top or middle. If you do not specify a value for this document attribute, HPDPS uses the default-medium attribute value, such as iso-a4-white or iso-a4-transparent. If that is not defined, then HPDPS uses the value identified for the default-input-tray, such as top or middle.

Specifying the Number of Pages

You can include information about the size of a document within your job. This may be helpful to you or an HPDPS administrator to help manage job flow.

For example, if your job file File3 is about 50 pages long, you might enter the command:

pdpr -x "page-count=50" File3

When submitting a job consisting of two files, you can specify the number of pages for each document:

pdpr -x "page-count=40" FileA -x "page-count=70" FileB
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.