83 lines
5.0 KiB
HTML
83 lines
5.0 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Java Print Service" />
|
|
<meta name="DC.Relation" scheme="URI" content="jdocindx.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="jvprtsrv" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Java Print Service</title>
|
|
</head>
|
|
<body id="jvprtsrv"><a name="jvprtsrv"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Java Print Service</h1>
|
|
<div><p> The Java™ Print Service (JPS) API allows printing on all Java platforms. Java 1.4
|
|
and subsequent versions provide a framework in which Java runtime
|
|
environments and third parties can provide stream generator plugins for producing
|
|
various formats for printing, such as PDF, Postscript, and Advanced
|
|
Function Presentation™ (AFP™). These plugins create the output formats from bi-dimensional
|
|
(2D) graphic calls.</p>
|
|
<p>An iSeries™ print
|
|
service represents a printer device that is configured on the iSeries with
|
|
the <span class="keyword">i5/OS™</span> command Create
|
|
Device Description (Printer) (CRTDEVPRT). Specify the publishing information
|
|
parameters when you create a printer device. This increases the number of
|
|
print service attributes supported by the iSeries print services. </p>
|
|
<p>If a printer supports Simple Network Management Protocol (SNMP), configure
|
|
the printer on the iSeries. Specify *IBMSNMPDRV for the value of the
|
|
system driver program parameter in the CRTDEVPRT command. The print services
|
|
use SNMP to retrieve specific information (printer service attributes) about
|
|
a configured printer.</p>
|
|
<p>The Doc Flavors supported by the iSeries include *AFPDS, *SCS, *USERASCII
|
|
- (PCL), *USERASCII - (Postscript), and *USERASCII - (PDF). Specify the Doc
|
|
Flavors that the printer supports in the Data Streams Supported parameter
|
|
within the Publishing Information of the CRTDEVPRT command.</p>
|
|
<p>When an application uses a print service to print a job (document) on the iSeries,
|
|
the print service places the document into a spooled file on an output queue
|
|
with the same name as the printer device (also the same name as specified
|
|
in the PrinterName attribute). Start a printer writer with the command STRPRTWTR
|
|
before the documents print on the printer device.</p>
|
|
<p>In addition to the attributes defined by the Java Print Service specification, the iSeries print
|
|
services support the following attributes for all Doc Flavors:</p>
|
|
<ul><li>PrinterFile (specifies a printer file, name and library, to be used when
|
|
creating the spooled file)</li>
|
|
<li>SaveSpooledFile (indicates whether to save the spooled file)</li>
|
|
<li>UserData (a 10 character string of user defined data)</li>
|
|
<li>JobHold (indicates whether to hold the spooled file)</li>
|
|
<li>SourceDrawer (indicates the source drawer to use for the output media)</li>
|
|
</ul>
|
|
<div class="section"><img src="./delta.gif" alt="Start of change" /><h4 class="sectiontitle">How to enable JPS when using JDK 1.5</h4><p>The
|
|
following are the symbolic links that need to be set up to enable the Java Print
|
|
Service:</p>
|
|
<pre>ADDLNK OBJ('/QIBM/ProdData/OS400/Java400/ext/ibmjps.jar')
|
|
NEWLNK('/QIBM/ProdData/Java400/jdk15/lib/ext/ibmjps.jar')
|
|
LNKTYPE(*SYMBOLIC)
|
|
|
|
ADDLNK OBJ('/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar')
|
|
NEWLNK('/QIBM/ProdData/Java400/jdk15/lib/ext/jt400Native.jar')
|
|
LNKTYPE(*SYMBOLIC)</pre>
|
|
<p>Refer to Sun Microsystems <a href="http://java.sun.com/j2se/1.4/docs/guide/jps" target="_blank">Java Print Service</a> documentation for more information. </p>
|
|
<img src="./deltaend.gif" alt="End of change" /></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="jdocindx.htm" title="The following Javadoc reference information relates to IBM Developer Kit for Java.">Related information for IBM Developer Kit for Java</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |