tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* remove private information from user documents
@ 2011-02-27 19:14 Ingo Schwarze
  2011-02-27 19:35 ` Joerg Sonnenberger
  2011-02-28  0:30 ` Anthony J. Bentley
  0 siblings, 2 replies; 5+ messages in thread
From: Ingo Schwarze @ 2011-02-27 19:14 UTC (permalink / raw)
  To: tech

Hi,

Theo noticed that mandoc(1) includes information about itself
into PostScript and PDF documents it creates.

I don't like that.  Basically, what software i'm running, and which
version, is private information about myself.  I don't expect such
information to end up in documents i'm creating.  Often, having that
information included won't matter, but in some situations, it may be
a bad idea.  Besides, leaking private information is never nice,
least so when the user is not aware what's happening and has no
obvious way to switch it off; but i'd go as far as to say that it
should not only be off by default, but that even an option to enable
it would be on the verge of bloatware.

If i want such information, along with my birthday, phone number and
address, sent out to the world, i can always choose to run Microsoft
Word.  ;-)

OK?

Yours,
  Ingo


Index: term_ps.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/term_ps.c,v
retrieving revision 1.14
diff -u -p -r1.14 term_ps.c
--- term_ps.c	31 Jan 2011 02:36:55 -0000	1.14
+++ term_ps.c	27 Feb 2011 19:01:18 -0000
@@ -788,7 +788,6 @@ ps_begin(struct termp *p)
 
 	if (TERMTYPE_PS == p->type) {
 		ps_printf(p, "%%!PS-Adobe-3.0\n");
-		ps_printf(p, "%%%%Creator: mandoc-%s\n", VERSION);
 		ps_printf(p, "%%%%CreationDate: %s", ctime(&t));
 		ps_printf(p, "%%%%DocumentData: Clean7Bit\n");
 		ps_printf(p, "%%%%Orientation: Portrait\n");
@@ -806,11 +805,6 @@ ps_begin(struct termp *p)
 		ps_printf(p, "\n%%%%EndComments\n");
 	} else {
 		ps_printf(p, "%%PDF-1.1\n");
-		pdf_obj(p, 1);
-		ps_printf(p, "<<\n");
-		ps_printf(p, "/Creator mandoc-%s\n", VERSION);
-		ps_printf(p, ">>\n");
-		ps_printf(p, "endobj\n");
 
 		for (i = 0; i < (int)TERMFONT__MAX; i++) {
 			pdf_obj(p, (size_t)i + 3);
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-07  0:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-27 19:14 remove private information from user documents Ingo Schwarze
2011-02-27 19:35 ` Joerg Sonnenberger
2011-02-27 22:40   ` Ingo Schwarze
2011-03-06 23:59     ` Kristaps Dzonsons
2011-02-28  0:30 ` Anthony J. Bentley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).