blob: 581d13f7bc01eae9d0d4cc51e0bb86963f20f6f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>bbox</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><H1
><A
NAME="AEN1"
></A
>bbox</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN15"
></A
><H2
>Name</H2
>bbox -- prints out the bounding box of a rawppm or rawpbm image
</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN18"
></A
><H2
>Synopsis</H2
><P
><B
CLASS="COMMAND"
>bbox</B
> [<CODE
CLASS="OPTION"
>-l</CODE
>] [<CODE
CLASS="OPTION"
>-r</CODE
>] [<CODE
CLASS="OPTION"
>-h</CODE
>] [<CODE
CLASS="OPTION"
>-V</CODE
>] [<TT
CLASS="REPLACEABLE"
><I
>rawpbmfile</I
></TT
>]</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN31"
></A
><H2
>DESCRIPTION</H2
><P
><B
CLASS="COMMAND"
>bbox</B
> reads a rawppm or rawpbm file
and prints out the bounding box of the image (as postscript comment and
in postscript points, i.e. 1/72dpi) as well as the high resolution
bounding box. Input is read from standard input if no filename is
specified.
Example output:
<PRE
CLASS="SCREEN"
> %%BoundingBox: 12 253 829 837
%%HiResBoundingBox: 12.500000 253.000000 828.500000 837.00000
</PRE
>
</P
><P
><B
CLASS="COMMAND"
>bbox</B
> has only very limited memory requirements
as it reads the input line by line and thus needs to store only one picture
line in memory.
</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN38"
></A
><H2
>OPTIONS</H2
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><CODE
CLASS="OPTION"
>-h | --help</CODE
></DT
><DD
><P
>Show summary of options.</P
></DD
><DT
><CODE
CLASS="OPTION"
>-V</CODE
></DT
><DD
><P
>Show version of program.</P
></DD
><DT
><CODE
CLASS="OPTION"
>-r</CODE
></DT
><DD
><P
>resolution of picture in dpi</P
></DD
><DT
><CODE
CLASS="OPTION"
>-l</CODE
></DT
><DD
><P
>loose bounding box (integer bounding box is expanded by 1
point, hires bounding box is expanded by 0.5 points)</P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN61"
></A
><H2
>SEE ALSO</H2
><P
>ps2eps (1)</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN64"
></A
><H2
>AUTHOR</H2
><P
><B
CLASS="COMMAND"
>bbox</B
> was written by Roland Bless. </P
><DIV
CLASS="REFSECT2"
><A
NAME="AEN68"
></A
><H3
>ACKNOWLEDGMENTS</H3
><P
>Special thanks goes to Michael Sharpe from UCSD who suggested a lot of improvements for
bbox to become more precise and robust, especially for small drawings.</P
><P
>An earlier version of this manual page was originally written by
Rafael Laboissiere <CODE
CLASS="EMAIL"
><<A
HREF="mailto:rafael@debian.org"
>rafael@debian.org</A
>></CODE
> for
the <SPAN
CLASS="PRODUCTNAME"
>Debian</SPAN
> system. Thank you Rafael! Permission is
granted to copy, distribute and/or modify this document under
the terms of the <ACRONYM
CLASS="ACRONYM"
>GNU</ACRONYM
> Free Documentation
License, Version 1.1 or any later version published by the Free
Software Foundation; with no Invariant Sections, no Front-Cover
Texts and no Back-Cover Texts.</P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="BUGS"
></A
><H2
>BUGS</H2
><P
> Though the code is quite small and the probability for bugs
is now small, there may be some left somewhere between the lines.
In case you find one, please send a short description with
<B
CLASS="COMMAND"
>bbox</B
> version number to <CODE
CLASS="EMAIL"
><<A
HREF="mailto:roland@bless.de"
>roland@bless.de</A
>></CODE
> (please allow some time
to reply).
</P
></DIV
></BODY
></HTML
>
|