250 lines
10 KiB
HTML
250 lines
10 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" 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. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<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))' />
|
|
<title>Convert PostScript data streams with image print transform</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="rzaluiptconvps"></a>
|
|
<h4 id="rzaluiptconvps">Convert PostScript data streams with image print transform</h4>
|
|
<p>Converting PostScript data streams is performed differently from converting
|
|
image data streams. PostScript conversion might require font files in order
|
|
to rasterize the data.</p>
|
|
<p>PostScript data streams are converted by using a separate job named QIMGSERV.
|
|
The QIMGSERV job runs in the QSYSWRK subsystem, and uses the QIMGJOBD job
|
|
description with a priority of 5. The QIMGSERV job is started by either the
|
|
writer job or the job that calls the Convert Image API. The QIMGSERV job
|
|
and the job that starts the QIMGSERV job communicate with each other so that
|
|
control is automatic.</p>
|
|
<p><span class="bold">Fonts</span></p>
|
|
<p>In order to convert PostScript files effectively, PostScript fonts are
|
|
required to convert text and symbols into bit-mapped images. Below are lists
|
|
of fonts supplied by IBM® for use with the image print transform function. Each
|
|
set of fonts is located in the integrated file system in the specified directory.
|
|
For each font name, there is a corresponding font file containing rasterization
|
|
information. This mapping information is stored in the psfonts.map file.</p>
|
|
<a name="wq123"></a>
|
|
<div class="notetitle" id="wq123">Note:</div>
|
|
<div class="notebody">Do not alter the IBM-supplied font files or the psfonts.map
|
|
file included in i5/OS®. Changing a font file or font mapping can cause
|
|
unpredictable results.</div>
|
|
<p>The following table shows the Latin Fonts that are stored in the /QIBM/ProdData/OS400/Fonts/PSFonts/Latin
|
|
directory.</p>
|
|
<a name="latfnt"></a>
|
|
<table id="latfnt" width="100%" summary="" border="1" frame="border" rules="all" class="singleborder">
|
|
<thead valign="bottom">
|
|
<tr class="tablemainheaderbar">
|
|
<th id="wq124" width="50%" align="left" valign="top">Font</th>
|
|
<th id="wq125" width="50%" align="left" valign="top">Associated file</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td valign="top" headers="wq124">TimesNewRoman</td>
|
|
<td valign="top" headers="wq125">TNR.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">TimesNewRoman-Bold</td>
|
|
<td valign="top" headers="wq125">TNRB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">TimesNewRoman-BoldItalic</td>
|
|
<td valign="top" headers="wq125">TNRBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">TimesNewRoman-Italic</td>
|
|
<td valign="top" headers="wq125">TNRI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Helvetica</td>
|
|
<td valign="top" headers="wq125">HEL.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Helvetica-Bold</td>
|
|
<td valign="top" headers="wq125">HELB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Helvetica-BoldItalic</td>
|
|
<td valign="top" headers="wq125">HELBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Helvetica-Italic</td>
|
|
<td valign="top" headers="wq125">HELI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Courier</td>
|
|
<td valign="top" headers="wq125">COU.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Courier-Bold</td>
|
|
<td valign="top" headers="wq125">COUB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Courier-BoldItalic</td>
|
|
<td valign="top" headers="wq125">COUBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq124">Courier-Italic</td>
|
|
<td valign="top" headers="wq125">COUI.PFB</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>The following table shows the symbol fonts that are stored in the /QIBM/ProdData/OS400/Fonts/PSFonts/Symbols
|
|
directory.</p>
|
|
<a name="symfnt"></a>
|
|
<table id="symfnt" width="100%" summary="" border="1" frame="border" rules="all" class="singleborder">
|
|
<thead valign="bottom">
|
|
<tr class="tablemainheaderbar">
|
|
<th id="wq126" width="50%" align="left" valign="top">Font</th>
|
|
<th id="wq127" width="50%" align="left" valign="top">Associated file</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td valign="top" headers="wq126">CourierSymbols</td>
|
|
<td valign="top" headers="wq127">COU_S.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq126">CourierSymbols-Bold</td>
|
|
<td valign="top" headers="wq127">COU_SB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq126">HelveticaSymbols</td>
|
|
<td valign="top" headers="wq127">HEL_S.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq126">HelveticaSymbols-Bold</td>
|
|
<td valign="top" headers="wq127">HEL_SB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq126">TimesNewRomanSymbols</td>
|
|
<td valign="top" headers="wq127">TNR_S.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq126">TimesNewRomanSymbols-Bold</td>
|
|
<td valign="top" headers="wq127">TNR_SB.PFB</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p><span class="bold">User-supplied fonts</span></p>
|
|
<p>To enhance the capabilities of the image print transform function when
|
|
converting PostScript data streams, you can add your own font files to be
|
|
used in conjunction with the IBM-supplied fonts included in i5/OS. These fonts are called user supplied fonts. The user supplied font
|
|
mapping file, psfonts.map, is stored in the directory as <tt class="xph">/QIBM/UserData/OS400/Fonts</tt>.</p>
|
|
<p>It behaves the same way as the psfonts.map file that is included in i5/OS. An important difference is that the image print transform function
|
|
will search for fonts by looking first at the user supplied font mapping file,
|
|
and then at the i5/OS font mapping file.</p>
|
|
<p>To add a user supplied font, do the following: </p>
|
|
<ol type="1">
|
|
<li>Use an ASCII text editor to open the psfonts.map file located in <tt class="xph">/QIBM/UserData/OS400/Fonts</tt>. If this file does not exist, you need to
|
|
create it.</li>
|
|
<li>Add a new line to the file to include the new font name and associated
|
|
path and file name. For example:
|
|
<pre class="xmp">font MyNewFont /QIBM/UserData/OS400/Fonts/PSFonts/MNF.PFB</pre> where MyNewFont is the name of the font, and MNF.PFB is the associated
|
|
font file.</li>
|
|
<li>Save the new psfonts.map file.</li>
|
|
<li>Copy the font file into the directory specified in the line added to the
|
|
psfonts.map file.</li></ol>
|
|
<p>To delete a user supplied font, simply remove the line mapping the font
|
|
name to its associated file in the psfonts.map file, and remove the font file
|
|
from i5/OS.</p>
|
|
<p><span class="bold">Font substitutions</span></p>
|
|
<p>When a font requested within a PostScript data stream is not available
|
|
on i5/OS, a font substitution can be defined if there is a similar font available.
|
|
A font substitution is the mapping of a font name to a font that is available
|
|
and very similar (in terms of its rasterization properties) to the font file
|
|
being replaced. You can also specify a font substitution if an existing font
|
|
mapping is producing undesirable output.</p>
|
|
<p>The following table shows the font substitution mappings that are defined
|
|
for Latin Fonts.</p>
|
|
<a name="latfnt2"></a>
|
|
<table id="latfnt2" width="100%" summary="" border="1" frame="border" rules="all" class="singleborder">
|
|
<thead valign="bottom">
|
|
<tr class="tablemainheaderbar">
|
|
<th id="wq129" width="50%" align="left" valign="top">Font</th>
|
|
<th id="wq130" width="50%" align="left" valign="top">Associated file</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td headers="wq129">Courier-BoldOblique</td>
|
|
<td headers="wq130">COUBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq129">Courier-Oblique</td>
|
|
<td headers="wq130">COUI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq129">Helvetica-BoldOblique</td>
|
|
<td headers="wq130">HELBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq129">Helvetica-Oblique</td>
|
|
<td headers="wq130">HELI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq129">Times-Bold</td>
|
|
<td valign="top" headers="wq130">TNRB.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq129">Times-BoldItalic</td>
|
|
<td valign="top" headers="wq130">TNRBI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" headers="wq129">Times-Italic</td>
|
|
<td valign="top" headers="wq130">TNRI.PFB</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq129">Times-Roman</td>
|
|
<td headers="wq130">TNR.PFB</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>The following font symbol substitution is also defined.</p>
|
|
<a name="wq131"></a>
|
|
<table id="wq131" width="100%" summary="" border="1" frame="border" rules="all" class="singleborder">
|
|
<thead valign="bottom">
|
|
<tr class="tablemainheaderbar">
|
|
<th id="wq132" width="50%" align="left" valign="top">Font</th>
|
|
<th id="wq133" width="50%" align="left" valign="top">Associated file</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td valign="top" headers="wq132">Symbol</td>
|
|
<td valign="top" headers="wq133">TNR_S.PFB</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>To define a font substitution, do the following: </p>
|
|
<ol type="1">
|
|
<li>Use an ASCII text editor to open the <span class="italic">psfonts.map</span> file
|
|
that is located in
|
|
<pre class="xmp">QIBM/UserData/OS400/Fonts</pre> If this file does
|
|
not exist, you need to create it.</li>
|
|
<li>Add a new line to the file to include the font name and the path and file
|
|
name of the font file you want to use as a substitute. For example:
|
|
<pre class="xmp">font Courier /QIBM/UserData/OS400/Fonts/PSFonts/HEL.PFB</pre></li>
|
|
<li>Save the new <span class="italic">psfonts.map</span> file.</li></ol>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|