| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 |
<html><head><title>Picttoppm User Manual</title></head> |
| 3 |
<body> |
| 4 |
<h1>picttoppm</h1> |
| 5 |
Updated: 17 June 2006 |
| 6 |
<br> |
| 7 |
<a href="#index">Table Of Contents</a> |
| 8 |
|
| 9 |
<h2>NAME</h2> |
| 10 |
picttoppm - convert a Macintosh PICT file to a PPM |
| 11 |
|
| 12 |
<h2 id="synopsis">SYNOPSIS</h2> |
| 13 |
|
| 14 |
<b>picttoppm</b> |
| 15 |
|
| 16 |
[<b>-verbose=</b><i>n</i>] |
| 17 |
|
| 18 |
[<b>-fullres</b>] |
| 19 |
|
| 20 |
[<b>-noheader</b>] |
| 21 |
|
| 22 |
[<b>-quickdraw</b>] |
| 23 |
|
| 24 |
<br> |
| 25 |
|
| 26 |
[<b>-fontdir</b> <i>file</i>] |
| 27 |
|
| 28 |
[<i>pictfile</i>] |
| 29 |
|
| 30 |
<h2 id="description">DESCRIPTION</h2> |
| 31 |
|
| 32 |
<p>This program is part of <a href="index.html">Netpbm</a>. |
| 33 |
|
| 34 |
<p><b>picttoppm</b> reads a PICT file (version 1 or 2) and outputs a PPM |
| 35 |
image. |
| 36 |
|
| 37 |
<p>PICT is an image format that was developed by Apple Computer in 1984 as the |
| 38 |
native format for Macintosh graphics. A PICT image is encoded in QuickDraw |
| 39 |
commands. The PICT format is a meta-format that can be used for both bitmap |
| 40 |
images and vector images. PICT is also known as "Macintosh Picture" |
| 41 |
format, or the QuickDraw Picture format. |
| 42 |
|
| 43 |
<p>PICT files are primarily used to exchange graphics between various |
| 44 |
Macintosh applications. |
| 45 |
|
| 46 |
<p>In MacOS X, PDF replaces PICT as the main graphics format. |
| 47 |
|
| 48 |
<h2 id="options">OPTIONS</h2> |
| 49 |
|
| 50 |
<p>In addition to the options common to all programs based on libnetpbm |
| 51 |
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions"> |
| 52 |
Common Options</a>), <b>picttoppm</b> recognizes the following |
| 53 |
command line options: |
| 54 |
|
| 55 |
<dl compact> |
| 56 |
<dt><b>-fontdir </b><i>file</i> |
| 57 |
|
| 58 |
<dd>Make the list of BDF fonts in <i>file</i> available for use by |
| 59 |
<b>picttoppm</b> when drawing text. See below for the format of the |
| 60 |
fontdir file. This is in addition to the built-in fonts and those in |
| 61 |
the file <b>fontdir</b>. |
| 62 |
|
| 63 |
<dt><b>-fullres</b> |
| 64 |
|
| 65 |
<dd>Force any images in the PICT file to be output with at least their |
| 66 |
full resolution. A PICT file may indicate that a contained |
| 67 |
image is to be scaled down before output. This option forces images |
| 68 |
to retain their sizes and prevent information loss. |
| 69 |
This option disables all PICT operations except images. |
| 70 |
|
| 71 |
<dt><b>-noheader</b> |
| 72 |
|
| 73 |
<dd>Do not assume the first 512 bytes of the file are a header. All PICT |
| 74 |
files have such a header, but this is useful when you have PICT data that was |
| 75 |
not stored in the data fork of a PICT file. |
| 76 |
|
| 77 |
<dt><b>-quickdraw</b> |
| 78 |
|
| 79 |
<dd>Execute only pure quickdraw operations. In particular, turn off |
| 80 |
the interpretation of special PostScript printer operations. |
| 81 |
|
| 82 |
<dt><b>-verbose=</b><i>n</i> |
| 83 |
|
| 84 |
<dd>Print a whole bunch of information about the PICT file and the conversion |
| 85 |
process that only <b>picttoppm</b> hackers really care about. |
| 86 |
|
| 87 |
<p><i>n</i> is the verbosity level, 0-2. |
| 88 |
|
| 89 |
<p>Before Netpbm 10.98 (March 2022), this option is a flag option that you |
| 90 |
specify multiple times to specify increasing verbosity. |
| 91 |
|
| 92 |
</dl> |
| 93 |
|
| 94 |
<h2 id="limitations">LIMITATIONS</h2> |
| 95 |
|
| 96 |
The PICT file format is a general drawing format. <b>picttoppm</b> |
| 97 |
does not recognize all the drawing commands, but it does fully |
| 98 |
implement all image commands and mostly implements line, rectangle, |
| 99 |
polygon and text drawing. It is useful for converting scanned images |
| 100 |
and some drawing conversion. |
| 101 |
|
| 102 |
<p>With <b>-fullres</b>, <b>picttoppm</b> ignores text drawing commands. |
| 103 |
Beginning in Netpbm 10.45 (December 2008), it issues a warning message |
| 104 |
when it omits text for this reason. |
| 105 |
|
| 106 |
<h2 id="fonts">FONTS</h2> |
| 107 |
|
| 108 |
<p>Some of the information in a PICT file is text, with a number |
| 109 |
indicating the font in which the text is supposed to rendered. |
| 110 |
<b>picttoppm</b> has one built-in font, but you can add others by |
| 111 |
directing <b>picttoppm</b> to BDF font files, which you do with font |
| 112 |
directory files. |
| 113 |
|
| 114 |
<p><b>picttoppm</b> automatically uses the file named <b>fontdir</b> |
| 115 |
in the current directory, if it exists. You may specify an additional |
| 116 |
font directory file with the <b>-fontdir</b> option. |
| 117 |
|
| 118 |
<p>Obviously the font definitions are strongly related to the |
| 119 |
Macintosh. You can find more font numbers and information about fonts |
| 120 |
in Macintosh documentation. |
| 121 |
|
| 122 |
<h3 id="fontdir">Font Directory File Format</h3> |
| 123 |
|
| 124 |
<p>Each line in the file is either a comment or font information. A |
| 125 |
comment begins with <b>#</b>. The font information consists of 4 |
| 126 |
whitespace separated fields. The first is the font number, the second |
| 127 |
is the font size in pixels, the third is the font style and the fourth |
| 128 |
is the name of a BDF file containing the font. The BDF format is |
| 129 |
defined by the X Window System and is beyond the scope of this document. |
| 130 |
|
| 131 |
<p>The font number indicates the type face. Here is a list of known |
| 132 |
font numbers and their faces. |
| 133 |
|
| 134 |
<dl> |
| 135 |
<dt>0 <dd>Chicago |
| 136 |
<dt>1 <dd>application font |
| 137 |
<dt>2 <dd>New York |
| 138 |
<dt>3 <dd>Geneva |
| 139 |
<dt>4 <dd>Monaco |
| 140 |
<dt>5 <dd>Venice |
| 141 |
<dt>6 <dd>London |
| 142 |
<dt>7 <dd>Athens |
| 143 |
<dt>8 <dd>San Franciso |
| 144 |
<dt>9 <dd>Toronto |
| 145 |
<dt>11 <dd>Cairo |
| 146 |
<dt>12 <dd>Los Angeles |
| 147 |
<dt>20 <dd>Times Roman |
| 148 |
<dt>21 <dd>Helvetica |
| 149 |
<dt>22 <dd>Courier |
| 150 |
<dt>23 <dd>Symbol |
| 151 |
<dt>24 <dd>Taliesin |
| 152 |
</dl> |
| 153 |
|
| 154 |
<p>The font style indicates a variation on the font. Multiple |
| 155 |
variations may apply to a font and the font style is the sum of the |
| 156 |
variation numbers which are: |
| 157 |
|
| 158 |
<dl> |
| 159 |
<dt>1 <dd>Boldface |
| 160 |
<dt>2 <dd>Italic |
| 161 |
<dt>4 <dd>Underlined |
| 162 |
<dt>8 <dd>Outlined |
| 163 |
<dt>16 <dd>Shadow |
| 164 |
<dt>32 <dd>Condensed |
| 165 |
<dt>64 <dd>Extended |
| 166 |
</dl> |
| 167 |
|
| 168 |
|
| 169 |
<h2 id="seealso">SEE ALSO</h2> |
| 170 |
|
| 171 |
Inside Macintosh volumes 1 and 5, |
| 172 |
<a href="ppmtopict.html">ppmtopict</a>, |
| 173 |
<a href="ppm.html">ppm</a> |
| 174 |
|
| 175 |
|
| 176 |
<h2 id="author">AUTHOR</h2> |
| 177 |
|
| 178 |
Copyright 1993 George Phillips |
| 179 |
|
| 180 |
<hr> |
| 181 |
<h2 id="index">Table Of Contents</h2> |
| 182 |
<ul> |
| 183 |
<li><a href="#synopsis">SYNOPSIS</a> |
| 184 |
<li><a href="#description">DESCRIPTION</a> |
| 185 |
<li><a href="#options">OPTIONS</a> |
| 186 |
<li><a href="#limitations">LIMITATIONS</a> |
| 187 |
<li><a href="#fonts">FONTS</a> |
| 188 |
<ul> |
| 189 |
<li><a href="#fontdir">Font Directory File Format</a> |
| 190 |
</ul> |
| 191 |
<li><a href="#seealso">SEE ALSO</a> |
| 192 |
<li><a href="#author">AUTHOR</a> |
| 193 |
</ul> |
| 194 |
</body> |
| 195 |
</html> |