Really start printing in 8 pnt Courier, not just state so in the template.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 1 Aug 2008 17:36:09 +0000 (17:36 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 1 Aug 2008 17:36:09 +0000 (17:36 +0000)
Add Wireshark version info to the page header.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25901 f5534014-38df-0310-8fa8-9805f1628bb7

print.c

diff --git a/print.c b/print.c
index 4d35b0d1049578465989f5e01389258019cb443b..bdd72a2609bb9921ed143400b2eddf193bef5754 100644 (file)
--- a/print.c
+++ b/print.c
@@ -40,6 +40,7 @@
 #include "packet-range.h"
 #include "print.h"
 #include "ps.h"
+#include "version_info.h"
 #include <wsutil/file_util.h>
 #include <epan/charsets.h>
 #include <epan/dissectors/packet-data.h>
@@ -1105,12 +1106,12 @@ print_preamble_ps(print_stream_t *self, gchar *filename)
 
        print_ps_preamble(output->fh);
 
-       fputs("%% Set the font to 10 point\n", output->fh);
-       fputs("/Courier findfont 10 scalefont setfont\n", output->fh);
+       fputs("%% Set the font to 8 point\n", output->fh);
+       fputs("/Courier findfont 8 scalefont setfont\n", output->fh);
        fputs("\n", output->fh);
        fputs("%% the page title\n", output->fh);
        ps_clean_string(psbuffer, filename, MAX_PS_LINE_LENGTH);
-       fprintf(output->fh, "/eth_pagetitle (%s - Wireshark) def\n", psbuffer);
+       fprintf(output->fh, "/eth_pagetitle (%s - Wireshark " VERSION "%s) def\n", psbuffer, wireshark_svnversion);
        fputs("\n", output->fh);
        return !ferror(output->fh);
 }