Re-added fixes after cvs tree was changed.
[obnox/wireshark/wip.git] / ps.c
1 /* Created by rdps.c. Do not edit! */
2
3 #include <stdio.h>
4
5 #include <ps.h>
6
7 /* Created by rdps.c. Do not edit! */
8 void print_ps_preamble(FILE *fd) {
9         fprintf(fd, "%%!\n");
10         fprintf(fd, "%%!PS-Adobe-2.0\n");
11         fprintf(fd, "%%\n");
12         fprintf(fd, "%% Ethereal - Network traffic analyzer\n");
13         fprintf(fd, "%% By Gerald Combs <gerald@zing.org>\n");
14         fprintf(fd, "%% Copyright 1998 Gerald Combs\n");
15         fprintf(fd, "%%\n");
16         fprintf(fd, "%%%%Creator: Ethereal\n");
17         fprintf(fd, "%%%%Title: ethereal.ps\n");
18         fprintf(fd, "%%%%DocumentFonts: Helvetica Courier\n");
19         fprintf(fd, "%%%%EndComments\n");
20         fprintf(fd, "%%!\n");
21         fprintf(fd, "\n");
22         fprintf(fd, "%% Get the Imagable Area of the page\n");
23         fprintf(fd, "clippath pathbbox\n");
24         fprintf(fd, "\n");
25         fprintf(fd, "%% Set vmax to the vertical size of the page,\n");
26         fprintf(fd, "%% hmax to the horizontal size of the page.\n");
27         fprintf(fd, "/vmax exch def\n");
28         fprintf(fd, "/hmax exch def\n");
29         fprintf(fd, "pop pop            %% junk\n");
30         fprintf(fd, "\n");
31         fprintf(fd, "%% 1-inch margins\n");
32         fprintf(fd, "/lmargin 72 def\n");
33         fprintf(fd, "/tmargin vmax 72 sub def\n");
34         fprintf(fd, "/bmargin 72 def\n");
35         fprintf(fd, "\n");
36         fprintf(fd, "%% Counters\n");
37         fprintf(fd, "/vpos vmax 70 sub def\n");
38         fprintf(fd, "\n");
39         fprintf(fd, "/putline {\n");
40         fprintf(fd, "   exch 10 mul lmargin add         %% X\n");
41         fprintf(fd, "   vpos                                            %% Y\n");
42         fprintf(fd, "   moveto\n");
43         fprintf(fd, "   show\n");
44         fprintf(fd, "\n");
45         fprintf(fd, "   /vpos vpos 10 sub def\n");
46         fprintf(fd, "\n");
47         fprintf(fd, "   vpos bmargin le                         %% is vpos <= bottom margin?\n");
48         fprintf(fd, "   {showpage\n");
49         fprintf(fd, "           /vpos tmargin def}\n");
50         fprintf(fd, "   if                                                      %% then formfeed and start at top\n");
51         fprintf(fd, "} def\n");
52         fprintf(fd, "\n");
53         fprintf(fd, "/hexdump {\n");
54         fprintf(fd, "   lmargin                                         %% X\n");
55         fprintf(fd, "   vpos                                            %% Y\n");
56         fprintf(fd, "   moveto\n");
57         fprintf(fd, "   show\n");
58         fprintf(fd, "\n");
59         fprintf(fd, "   /vpos vpos 10 sub def\n");
60         fprintf(fd, "\n");
61         fprintf(fd, "   vpos bmargin le                         %% is vpos <= bottom margin?\n");
62         fprintf(fd, "   {showpage\n");
63         fprintf(fd, "           /vpos tmargin def}\n");
64         fprintf(fd, "   if                                                      %% then formfeed and start at top\n");
65         fprintf(fd, "} def\n");
66         fprintf(fd, "\n");
67         fprintf(fd, "%% Set the font to 10 point\n");
68         fprintf(fd, "/Helvetica findfont 10 scalefont setfont\n");
69         fprintf(fd, "\n");
70         fprintf(fd, "%% Display our output lines.\n");
71 }
72
73
74 /* Created by rdps.c. Do not edit! */
75 void print_ps_hex(FILE *fd) {
76         fprintf(fd, "%% Set the font to 10 point\n");
77         fprintf(fd, "/Courier findfont 10 scalefont setfont\n");
78         fprintf(fd, "() hexdump\n");
79 }
80
81
82 /* Created by rdps.c. Do not edit! */
83 void print_ps_finale(FILE *fd) {
84         fprintf(fd, "showpage\n");
85 }
86
87