1 /* Created by rdps.c. Do not edit! */
7 /* Created by rdps.c. Do not edit! */
8 void print_ps_preamble(FILE *fd) {
10 fprintf(fd, "%%!PS-Adobe-2.0\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");
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");
22 fprintf(fd, "%% Get the Imagable Area of the page\n");
23 fprintf(fd, "clippath pathbbox\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");
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");
36 fprintf(fd, "%% Counters\n");
37 fprintf(fd, "/vpos vmax 70 sub def\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");
45 fprintf(fd, " /vpos vpos 10 sub def\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");
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");
59 fprintf(fd, " /vpos vpos 10 sub def\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");
67 fprintf(fd, "%% Set the font to 10 point\n");
68 fprintf(fd, "/Helvetica findfont 10 scalefont setfont\n");
70 fprintf(fd, "%% Display our output lines.\n");
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");
82 /* Created by rdps.c. Do not edit! */
83 void print_ps_finale(FILE *fd) {
84 fprintf(fd, "showpage\n");